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)