Darcaem Posted October 5, 2019 Share Posted October 5, 2019 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 More sharing options...
near_blind Posted October 7, 2019 Share Posted October 7, 2019 https://flightcontrol-master.github.io/MOOSE_DOCS/Documentation/AI.AI_A2A_Dispatcher.html##(AI_A2A_DISPATCHER).SetSquadron Isn't that what the resource count in set Sqaudron is for? Link to comment Share on other sites More sharing options...
Darcaem Posted October 9, 2019 Author Share Posted October 9, 2019 Oh! Thanks! I tend to overcomplicate easy things :P Link to comment Share on other sites More sharing options...
Recommended Posts