arma3_missions/helotraining_mp.Altis/getAlivePlayers.sqf
2016-07-26 11:34:40 +03:00

13 lines
364 B
Plaintext

//diag_log format["getAlivePlayers called, _this: %1", _this];
private _returnValue = [];
private _justPlayers = (call BIS_fnc_listPlayers) - entities "HeadlessClient_F";
{
if (alive _x) then
{
[_returnValue, _x] call BIS_fnc_arrayPush;
};
} forEach _justPlayers;
//diag_log format["getAlivePlayers returning: %1", _returnValue];
_returnValue