Jump to content

Grumpy Old Man

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Grumpy Old Man

  1. You could use the old school approach of calculating the distance between two 2d vectors, or use MIST for it, since MIST already has a function for that. Old school approach would be to get the 2d points of both units, then use the following: point1 = {x1,y1} point2 = {x2,y2} xd = x2-x1 yd = y2-y1 distance = squareroot(xd*xd + yd*yd) This would return the 2d distance between both points. Cheers
  2. I for myself am using DCS with 5.1 surround sound. Working just fine here, running with the hdmi out from my gtx 770 to my 7.1 receiver. Only had to make sure the sound output under windows 10 is configured as surround (-> sound -> select sound device -> configuration), also made sure to disable all built in FX (-> sound -> select sound device -> properties -> enhancements or whatever it's called) or whatever nonsense they're throwing at customers nowadays. ("Create Dummy Channels" anyone?) Sound Quality in DCS isn't top notch but it fits the purpose. If you play back a 5.1 movie on your PC and have actual sound coming out of your entire 5.1 system (centre, rears) DCS should just be the same.
  3. Place a tanker on the map and add an advanced waypoint with orbit to it. Make sure it has the "Tanker" task running. Place a group that has air to air refuel capabilities and set their fuel to any value below 100%. Add an advanced waypoint of type "Refueling" to the second group. Never got it to work using the S3-B Tanker. KC-135 is working just fine, same goes for the Il-78M. As for aircrafts you want to refuel I only got it to work with A10-C and SU33, no idea if other aircrafts are capable of doing this. Cheers
  4. Hey folks, long time lurker here. Been enjoying DCS a lot in the past, trying to get a grasp of the scripting engine as of recently. Currently I'm just goofing around trying to get stuff to work, tried to make a bomber attack a random point in an editor placed zone. This is what I came up with so far: Initializing both MIST and my own function Library upon mission start. Placed a Zone named 'mybombzone'. Placed a B1 bomber named 'mybomber', equipped with GBU-38 mid flight, 3 waypoints. On second waypoint I run this script from the advanced waypoint for testing purposes: GOM_fnc_BombZone('mybomber','mybombzone')GOM_fnc_BombZone is a function defined in my own .lua file, initialized at mission start: function GOM_fnc_BombZone(bombergroup,bombzone) local gName = Group.getByName(bombergroup) local getpoint = mist.getRandomPointInZone(bombzone) local bombing = {id = 'bombing', params = {point = getpoint}} Controller.setTask(Group.getController(gName), bombing) endNo idea what I'm doing wrong, it's just throwing an empty error. 01534.063 ERROR DCS: Mission script error: : (null)Which leaves me puzzled. All I know is that both script files are being correctly loaded upon mission start since there's other units using other functions just fine. Any ideas? Cheers
×
×
  • Create New...