Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.40 KB | None | 0 0
  1. if !(isServer) exitWith {["Please run the inspector on the server ....."] call ALiVE_fnc_dump};
  2.  
  3. private _alive_main     = ((entities "ALiVE_require") select 0);
  4. private _alive_status   = (_alive_main getVariable ["startupComplete", false]);
  5.  
  6. ["Waiting for ALiVE startup to finalize ...."] call ALiVE_fnc_dump;
  7.  
  8. while {!_alive_status} do
  9. {
  10.     sleep 1;
  11.  
  12.     _alive_status = (_alive_main getVariable ["startupComplete", false]);
  13. };
  14.  
  15. ["#################### Begin OPCOM analysis ####################"] call ALiVE_fnc_dump;
  16.  
  17. {
  18.     ["########## Begin OPCOM inspection ##########"] call ALiVE_fnc_dump;
  19.     ["Inspecting OPCOM instance: '%1'", _forEachIndex] call ALiVE_fnc_dump;
  20.  
  21.     private _OPCOM = _x;
  22.  
  23.     _OPCOM call ALiVE_fnc_InspectHash;
  24.  
  25.     private _objectives = [_OPCOM, "objectives", []] call ALiVE_fnc_HashGet;
  26.  
  27.     ["##### Begin OPCOM objective inspection ##########"] call ALiVE_fnc_dump;
  28.     ["Objectives for OPCOM instance: '%1'", _forEachIndex] call ALiVE_fnc_dump;
  29.  
  30.     {
  31.         ["Inspecting objective '%1' ....", _forEachIndex] call ALiVE_fnc_dump;
  32.         _x call ALiVE_fnc_InspectHash;
  33.     } foreach _objectives;
  34.  
  35.     ["##### End OPCOM objective inspection ##########"] call ALiVE_fnc_dump;
  36.     ["########## End OPCOM inspection ##########"] call ALiVE_fnc_dump;
  37.  
  38. } forEach OPCOM_instances;
  39.  
  40. ["#################### End OPCOM analysis ####################"] call ALiVE_fnc_dump;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement