2015-01-12 10:24:58 +00:00
|
|
|
/*
|
|
|
|
Name: ACE_Respawn_fnc_removeDisconnectedPlayer
|
|
|
|
|
|
|
|
Author(s):
|
|
|
|
commy2
|
|
|
|
|
|
|
|
Description:
|
|
|
|
handles the disconnected event
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
0: BOOLEAN - forceRemove // not used atm
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
VOID
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
2015-01-12 09:07:03 +00:00
|
|
|
|
|
|
|
private ["_forceRemove", "_body"];
|
|
|
|
|
|
|
|
_forceRemove = _this select 0;
|
|
|
|
|
|
|
|
{
|
2015-01-13 14:28:03 +00:00
|
|
|
if (getPlayerUID _x == _uid) exitWith {
|
|
|
|
_body = _x;
|
|
|
|
};
|
2015-01-12 09:07:03 +00:00
|
|
|
} forEach playableUnits;
|
|
|
|
|
|
|
|
if (!isNil "_body" && {!alive _body}) then {
|
2015-01-13 14:28:03 +00:00
|
|
|
[_body, _forceRemove] call FUNC(removeBody);
|
2015-01-12 09:07:03 +00:00
|
|
|
};
|