mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
32 lines
508 B
Plaintext
32 lines
508 B
Plaintext
/*
|
|
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"
|
|
|
|
private ["_forceRemove", "_body"];
|
|
|
|
_forceRemove = _this select 0;
|
|
|
|
{
|
|
if (getPlayerUID _x == _uid) exitWith {
|
|
_body = _x;
|
|
};
|
|
} forEach playableUnits;
|
|
|
|
if (!isNil "_body" && {!alive _body}) then {
|
|
[_body, _forceRemove] call FUNC(removeBody);
|
|
};
|