mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
The protective box is not needed on Chernarus. If other maps need it we are better off spawning a permanent box around the debug area once, instead of constantly creating new boxes every time a player logs in.
13 lines
385 B
Plaintext
13 lines
385 B
Plaintext
private ["_vehicle","_player","_attached"];
|
|
|
|
if (DZE_HeliLift) then {
|
|
_vehicle = _this select 0;
|
|
_player = _this select 2;
|
|
_attached = _vehicle getVariable ["attached",false];
|
|
if (typeName _attached == "OBJECT") then {
|
|
_player action ["eject",_vehicle];
|
|
detach _vehicle;
|
|
_vehicle setVariable ["attached",false,true];
|
|
_attached setVariable ["hasAttached",false,true];
|
|
};
|
|
}; |