ACE3/addons/respawn/functions/fnc_removeDisconnectedPlayer.sqf

16 lines
268 B
Plaintext
Raw Normal View History

2015-01-12 09:07:03 +00:00
// by commy2
private ["_forceRemove", "_body"];
_forceRemove = _this select 0;
{
if (getPlayerUID _x == _uid) exitWith {
_body = _x;
};
} forEach playableUnits;
if (!isNil "_body" && {!alive _body}) then {
2015-01-12 09:49:21 +00:00
[_body, _forceRemove] call FUNC(removeBody);
2015-01-12 09:07:03 +00:00
};