FlightControl Posted June 17, 2016 Posted June 17, 2016 Is there somebody who knows how to land an airplane that is airborne, at an airbase of choice using the lua scripting API task commands? When i observe a mission file, and the landing waypoint, the structure looks like this: [4] = { ["alt"] = 45, [b]["type"] = "Land", ["action"] = "Landing", [/b] ["alt_type"] = "BARO", ["ETA"] = 527.81058817743, [b]["airdromeId"][/b] = 12, ["y"] = 243127.2973737, ["x"] = -5406.2803440839, ["ETA_locked"] = false, ["task"] = { ["id"] = "ComboTask", ["params"] = { ["tasks"] = { }, -- end of ["tasks"] }, -- end of ["params"] }, -- end of ["task"] ["speed_locked"] = true, }, -- end of [4] When i put this structure into a Mission task, and start the task using pushTask of the group, the airborne plane group will fly to the location indicated, but will not land at the airbase... Although i've provided the correct airdromeId of the airbase. The only way i can do that at the moment (and that is working), is by respawning the group and pointing the last waypoint to the airbase, providing the valid airbase ID. But this method has a disadvantage, when the group is damaged, and gets respawned, it will be completely healthy again... This is not what i want to happen ... [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE]
FlightControl Posted June 17, 2016 Author Posted June 17, 2016 Maybe my question was not so clear, so I'll post an example mission soon. Maybe this behaviour of dcs when executing the landing process through a mission task is a bug?... Sent from mTalk on Windows 10 mobile [TABLE][sIGPIC][/sIGPIC]| Join MOOSE community on: DISCORD :thumbup: Website of the MOOSE LUA Framework. MOOSE framework Downloads. Check out Example Missions to try out and learn. MOOSE YouTube Channel for live demonstrations and tutorials. [/TABLE]
Recommended Posts