I'm trying to pull data from the globalForcePool, however I haven't found a way to wait for it finish grabbing data in a more robust way. I'm currently just sleeping for 30 seconds after mission start, which works, but I have no guarantee that this will work all the time.
I've tried waiting for waitUntil {!isNil "ALIVE_mil_OPCOM"}, but this happens before the globalForcePool is initalized.
Doing the same for ALIVE_mil_logistics never continues.
Doing the same for ALIVE_globalForcePool returns an empty array.
Looking into the code, it seems that the Military Logistics module has its own variables for startupComplete and initialAnalysisComplete, which looks like what I need, but I can't find a way to access those variables directly.
Any help would be appreciated.