Advertisement
Rimsiakas

Adapter runner trigger

Nov 11th, 2021
1,131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.56 KB | None | 0 0
  1. // Condition:
  2.  
  3. private _spawners = allMissionObjects "ModuleSpawnAI_F";
  4. private _totalSpawnerCount = count _spawners;
  5. private _initializedSpawners = [];
  6. {  
  7.     if (typeName (_x getVariable "BlacklistedGroups") == "ARRAY") then {  
  8.         _initializedSpawners append [_x];
  9.     };
  10. } forEach _spawners;
  11. _totalSpawnerCount > 0 && {_totalSpawnerCount == count _initializedSpawners};
  12.  
  13.  
  14.  
  15.  
  16. // On Activation:
  17.      
  18. {    
  19.     [_x] call Rimsiakas_fnc_AISpawnerGroupsInitAdapter;    
  20. } forEach ((entities "LOGIC") select {typeOf _x == "ModuleSpawnAI_F"});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement