sunski34 Posted May 30, 2018 Posted May 30, 2018 Hi, In changelog, : "Added scripting functions for airbase parking data (true/false parameter)." Can I have more explanations? Thanks in advance. Sunski
sea2sky Posted May 30, 2018 Posted May 30, 2018 +1 i5-9600K@4.8GHz ★ 32Gb DDR4 ★ rtx5070ti ★ Quest Pro ★ Warthog on Virpil base
funkyfranky Posted May 30, 2018 Posted May 30, 2018 "Added scripting functions for airbase parking data (true/false parameter)." Can I have more explanations? +1, sounds very interesting :thumbup: A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
sea2sky Posted May 30, 2018 Posted May 30, 2018 (edited) +1, sounds very interesting The function is still in works, but so far this has been implemented: Airbase.getParking(true/false) true - gets only available parking. false - gets all parkings Returns: [1] = { Term_Index = (int) Term_Index_0 = (int) Term_Type = (int) TO_AC = (bool) fDistToRW = (float) vTerminalPos = (vec3) } nt Term_Index; // Terminal index int Term_Index_0; // Index of initial point of the taxi path int Term_Type; // Terminal type bool TO_AC; // true - taking off aircraft, false - landing aircraft float fDistToRW; // Distance to RW (all distancies measured to the 1st RW edge) enum wsTermTypes { wsttUnknown = 0, wsttTurnpoint = 1 << 1, wsttShelter = 1 << 2, wsttOpenParking = 1 wsttRunWayPoint = 1 << 4, wsttHelicopter = 1 << 5, wsttAirplane = 1 << 6 }; (Term_Type & wsttOpenParking) || (Term_Type & wsttShelter) <==== is parking Edited May 30, 2018 by sea2sky i5-9600K@4.8GHz ★ 32Gb DDR4 ★ rtx5070ti ★ Quest Pro ★ Warthog on Virpil base
funkyfranky Posted May 30, 2018 Posted May 30, 2018 The function is still in works, but so far this has been implemented: Thanks, mate :thumbup: I like it - a lot! A warrior's mission is to foster the success of others. i9-12900K | RTX 4090 | 128 GB Ram 3200 MHz DDR-4 | Quest 3 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss
Grimes Posted May 31, 2018 Posted May 31, 2018 Fully documented it here: https://wiki.hoggitworld.com/view/DCS_func_getParking Wasn't prepared for it to go live just yet, so I had to double check the status of it before I documented it. 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
sea2sky Posted May 31, 2018 Posted May 31, 2018 Fully documented it here: https://wiki.hoggitworld.com/view/DCS_func_getParking Wasn't prepared for it to go live just yet, so I had to double check the status of it before I documented it. Great! Now I'm wondering how to get a reference to the Airbase object without knowing its name. Say for example, I have a unit with an airdromeId - any way to figure what airbase it belongs to? i5-9600K@4.8GHz ★ 32Gb DDR4 ★ rtx5070ti ★ Quest Pro ★ Warthog on Virpil base
Grimes Posted May 31, 2018 Posted May 31, 2018 Cross reference with world.getAirbases() Push comes to shove you can make a lookup table fairly quickly. The bases on the map are fixed. Only FARPs and ships wouldn't show up on that list. https://wiki.hoggitworld.com/view/Category:Terrain_Information 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
sea2sky Posted June 4, 2018 Posted June 4, 2018 Fully documented it here: https://wiki.hoggitworld.com/view/DCS_func_getParking Played with it, and I think there is a bug. At least in Nevada. Airplanes get spawned at the corner of the secondary runways even though the term type is: "72 : Open/Shelter air airplane only". i5-9600K@4.8GHz ★ 32Gb DDR4 ★ rtx5070ti ★ Quest Pro ★ Warthog on Virpil base
Coug4r Posted July 9, 2018 Posted July 9, 2018 Just to make sure, are we supposed to use 'parking' or 'parking_id' for the retrieved Term_Index? - If man were meant to fly he'd be filled with helium.
Recommended Posts