mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-25 17:31:36 +03:00
Update server_functions
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.
This commit is contained in:
13
SQF/dayz_server/compile/server_checkIfTowed.sqf
Normal file
13
SQF/dayz_server/compile/server_checkIfTowed.sqf
Normal file
@@ -0,0 +1,13 @@
|
||||
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];
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user