Jump to content

stephen.v.sargent

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Just to confirm that was the problem. Cheers
  2. yep - I guess I'll switch that off - Thanks
  3. I seem to be having an issue where the old cockpit model is being overlaid over the new one. I bought the black shark 3 update module. Anyone got a clue as to how to get it displaying properly?
  4. Updated a little more elegantly: dofile("C:\\.......My Mission\\TestMission06.lua") local waypoints = {} local i=1 while true do local str=wyptstxt[i] if not str then break end i=i+1 local t = {} for n in str:gmatch("%S+") do table.insert(t, tonumber(n)) end local lat=t[1] local lon=t[2] local route = {} route = coord.LLtoLO(lat, lon) waypoints[#waypoints+1] = mist.fixedWing.buildWP(route,"turningpoint",200,500,"agl") end local myLog = mist.Logger:new('waypoints',waypoints) local GroupDrone = {} GroupDrone = Group.getByName("Drone") local DroneWhat ={} DroneWhat = mist.goRoute(GroupDrone, waypoints) where TestMission06.lua is : wyptstxt={} wyptstxt[1]="44.19277778 38.62527778" wyptstxt[2]="44.99277778 38.62527778" wyptstxt[3]="44.99277778 39.62527778" wyptstxt[4]="44.19277778 39.62527778" i.e. a file where an indefinate number of waypoints can be added. Note that doing this in a do file gets round the exclusion of lua io functions in DCS
  5. Hi all - actually does work - just needed to get the dcs mission editor to log I'd made a change to the script -doh
  6. I'm trying to get a group "Drone" I've created to switch to following a route round some Lat Long Waypoints. The group is an Su25 which I've late activated with nothing as it's task. I try to load up some waypoints with the following script, but nothing seems to happen and the Su25 just proceeds to land at the nearest airport. I'm pretty new to this so I've probably made a rookie mistake. Any chance anyone could help me out with some advice? local lat1=44.19277778 local lon1=38.62527778 local lat2=44.99277778 local lon2=38.62527778 local lat3=44.99277778 local lon3=39.62527778 local lat4=44.19277778 local lon4=39.62527778 local route1 = {} route1 = coord.LLtoLO(lat1, lon1) local route2 = {} route2 = coord.LLtoLO(lat2, lon2) local route3 = {} route3 = coord.LLtoLO(lat3, lon3) local route4 = {} route4 = coord.LLtoLO(lat4, lon4) local waypoints = {} waypoints[#waypoints+1] = mist.fixedWing.buildWP(route1,"turningpoint",200,500,"agl") waypoints[#waypoints+1] = mist.fixedWing.buildWP(route2,"turningpoint",200,500,"agl") waypoints[#waypoints+1] = mist.fixedWing.buildWP(route3,"turningpoint",200,500,"agl") waypoints[#waypoints+1] = mist.fixedWing.buildWP(route4,"turningpoint",200,500,"agl") local GroupDrone = {} GroupDrone = Group.getByName("Drone") local DroneWhat ={} DroneWhat = mist.goRoute(GroupDrone, waypoints)
×
×
  • Create New...