Avalanche110 Posted June 1, 2020 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
funkyfranky Posted June 1, 2020 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. 3 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
Avalanche110 Posted June 2, 2020 Author 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.
mono6020 Posted June 9, 2020 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?
Recommended Posts