sigzegv Posted December 10, 2016 Posted December 10, 2016 I dumped an aicraft position after setting it on a take off from ramp with a specific parking spot, either route point and unit doesn't contain any parking information but x,y coords. And when I force coordinates on a unit's "take of from ramp" waypoint, it's always spawned at parking 1. I don't know what i'm missing. (I also tried to set position directly on unit but it doesn't work either) Exemple for vaziani, I try to set parking slot 8 (which here are the x,y coords dumped when placing the unit directly on the editor : ["route"] = { ["points"] = { [1] = { ["type"] = "TakeOffParking", ["action"] = "From Parking Area", ["form"] = "From Parking Area", ["alt_type"] = "BARO", ["y"] = 904239.5625, ["x"] = -319783.5625, ["airdromeId"] = 31, ["task"] = { ["id"] = "ComboTask", ["params"] = {} } } } } But it doesn't work, any idea ?
razo+r Posted December 10, 2016 Posted December 10, 2016 you can choose which parking slot an aircraft occupies in the mission editor
sigzegv Posted December 10, 2016 Author Posted December 10, 2016 you didn't understood, I don't want to do it via the editor, I need to do it via scripting.
Pikey Posted December 10, 2016 Posted December 10, 2016 I thought spawning on airbase was a reserved activity to stop collision, Grimes might know, but i'm sure i recall something about it. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
sigzegv Posted December 10, 2016 Author Posted December 10, 2016 When I look at the Random airtraffic script ( https://forums.eagle.ru/showthread.php?t=108476 ) it seems the planes are spawn dynamically with a "parking" key in the unit properties, but it doesn't work in my side, that's why I believe there is a way.
Grimes Posted December 10, 2016 Posted December 10, 2016 At present you can't define the parking spot for dynamically spawned AI. The starting position is assigned automatically. Part of that automatic process is to check to see if the spot is occupied. If you are spawning a bunch of AI at the same time there shouldn't be any 2 aircraft occupying the same spot. Aside for that I think it spawns based on the active runway. There is a bug report/feature request for the parking to be able to be assigned, but I have no clue if or when it might actually be implemented. 1 The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
sigzegv Posted December 11, 2016 Author Posted December 11, 2016 Ok if you tell me the spots are atomatically managed that's a good point for me now, thank you for your answer Grimes
Recommended Posts