Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> DG_HandleDisconnect = addMissionEventHandler ["HandleDisconnect", {
- params ["_unit"];
- if !(_unit inArea "baseZone") then
- { if ( vehicle _unit==_unit ) then
- { [_unit] spawn
- { params ["_unit"];
- _unit hideObjectGlobal true;
- _loadout = [_unit, [_unit, "Var_SavedInventory"]] call BIS_fnc_saveInventory;
- _group = createGroup civilian;
- _deadGuy = _group createUnit ["B_Protagonist_VR_F", getPos _unit, [], 0, "CAN_COLLIDE"];
- _deadGuy setDamage 1;
- [_deadGuy, [_unit, "Var_SavedInventory"]] call BIS_fnc_loadInventory;
- deleteVehicle _unit;
- [_deadGuy] spawn {
- params ["_deadGuy"];
- sleep 300;
- hideBody _deadGuy;
- };
- };
- };
- }
- else
- { deleteVehicle _unit; };
- { if ( (str _unit) in (_x select 9) ) exitWith
- { _members = (_x select 9);
- _playerPosition = (_x select 9) find (str _unit);
- _members set [_playerPosition, ""];
- (virtualGroups select _forEachIndex) set [9, _members];
- };
- } forEach virtualGroups;
- false
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement