Jump to content

Stop a CAP created with AI_A2A_Dispatcher


Darcaem

Recommended Posts

Hi

 

 

I have a CAP set using the Moose class AI_A2A_Dispatcher. Following the guide I first use SetSquadronCap and then SetSquadronCapInterval to activate the CAP.

 

 

 

As far as I unterstand, what I am doing is to have always a CAP flight. When the CAP is destroyed or RTB, another one is launcher after some time more than LowInterval and less than HighInterval.

 

 

 

What I would like to simulate is the total number of available aircrafts a certain airfield has. Meaning, I would like to count how many groups/aircrafts are spawned (idially also knowing what type of aircraft has spawned, since I had three different types on the squadron), and when reach a certain value, stop the dispatcher object, simulating there are no more available CAPs.

 

 

 

I've been looking and these two methods look promissing

 

 

 

https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/AI.AI_A2A_Dispatcher.html##(AI_A2A_DISPATCHER).OnAfterCAP

https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/AI.AI_A2A_Dispatcher.html##(AI_A2A_DISPATCHER).OnBeforeCAP

 

 

But since they don't have documentation, I cannot figure out how they work of if they even do what I would like. In my mind, those handlers are called when a new CAP is spawned, or "started" at some point, and when the CAP is destroyed or RTB. Is that right?

 

 

 

And then, to stop the dispatcher completely and not spawn any more aircrafts, I have no idea what to do

 

 

Thanks for any advice!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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