Avalanche110 Posted June 1, 2020 Share Posted June 1, 2020 I have tried this a number of times over the years without success. I am wondering if anyone else has had more success. I am trying to spawn AI aircraft in a specific parking spot at Nellis. I have a simple MOOSE script that will successfully spawn them at the correct airbase, even the correct Terminal type. but I do not understand how to spawn them in a specific parking spot. Any Help would be greatly appreciated. 1 Link to comment Share on other sites More sharing options...
funkyfranky Posted June 1, 2020 Share Posted June 1, 2020 You can use the SPAWN:SpawnAtParkingSpot() function: local Batumi=AIRBASE:FindByName("Batumi") Batumi:MarkParkingSpots() local spawnF16=SPAWN:New("F-16C Group") spawnF16:SpawnAtParkingSpot(Batumi, {2}, SPAWN.Takeoff.Cold) Note however, that for a group with more than one aircraft, you need to specify all parking spots as second parameter, e.g. {2, 3, 5} because obviously all units need a spot. Secondly, the numbering of the spots is different from what you see in the ME (need to ask ED why). The line Batumi:MarkParkingSpots() puts markers with the info on the F10 map. You can delete that line once you don't need it anymore. 2 A warrior's mission is to foster the success of others. i9-12900K | MSI RTX 3080Ti Suprim X | 128 GB Ram 3200 MHz DDR-4 | MSI MPG Edge Z690 | Samung EVO 980 Pro SSD | Virpil Stick, Throttle and Collective | MFG Crosswind | HP Reverb G2 RAT - On the Range - Rescue Helo - Recovery Tanker - Warehouse - Airboss Link to comment Share on other sites More sharing options...
Avalanche110 Posted June 2, 2020 Author Share Posted June 2, 2020 FunkyFranky. This is a huge help, This has puzzled me for a long time now. Thanks for the feedback and all your work with MOOSE. Link to comment Share on other sites More sharing options...
mono6020 Posted June 9, 2020 Share Posted June 9, 2020 You can use the SPAWN:SpawnAtParkingSpot() function: local Batumi=AIRBASE:FindByName("Batumi") Batumi:MarkParkingSpots() local spawnF16=SPAWN:New("F-16C Group") spawnF16:SpawnAtParkingSpot(Batumi, {2}, SPAWN.Takeoff.Cold) Note however, that for a group with more than one aircraft, you need to specify all parking spots as second parameter, e.g. {2, 3, 5} because obviously all units need a spot. Secondly, the numbering of the spots is different from what you see in the ME (need to ask ED why). The line Batumi:MarkParkingSpots() puts markers with the info on the F10 map. You can delete that line once you don't need it anymore. [ATTACH]238019[/ATTACH] Hi FunkyFranky, ist it posible to assign an array of parking spots for the AI_A2A_DISPATCHER spawns? Link to comment Share on other sites More sharing options...
Recommended Posts