Jump to content

Spawning planes at a specific parking spot with MOOSE


Avalanche110

Recommended Posts

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.

  • Like 1
Link to comment
Share on other sites

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.

Parking.thumb.png.aaf85e7e7b1495144a30956e1be549aa.png

  • Thanks 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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...