Files
DayZ-Epoch/dayz_server/compile/server_routinePlayerCheck.sqf
Aaron Clark 76e9a0582e 0.1
2012-11-04 20:28:50 -06:00

14 lines
326 B
Plaintext

private["_unitArray","_handle"];
_unitArray = [];
if (isSinglePlayer) then {
_unitArray = [player];
} else {
_unitArray = dayz_players;
};
{
if (!isNull _x) then {
//diag_log ("SERVER: Routine Player Check: " + str(_x));
_handle = _x spawn server_updatePlayer;
waitUntil{scriptDone _handle};
};
} forEach _unitArray;