arma2-epoch-server/@DayZ_Epoch_Server/addons/dayz_server/compile/server_checkIfTowed.sqf

13 lines
385 B
Plaintext
Raw Permalink Normal View History

2022-04-21 16:15:41 +03:00
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];
};
};