mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
prevent remove option while script is running
This commit is contained in:
@@ -7,6 +7,9 @@ private ["_obj","_objectID","_objectUID","_started","_finished","_animState","_i
|
|||||||
if(TradeInprogress) exitWith { cutText ["Remove already in progress." , "PLAIN DOWN"]; };
|
if(TradeInprogress) exitWith { cutText ["Remove already in progress." , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
TradeInprogress = true;
|
||||||
|
|
||||||
|
player removeAction s_player_deleteBuild;
|
||||||
|
s_player_deleteBuild = 1;
|
||||||
|
|
||||||
_obj = _this select 3;
|
_obj = _this select 3;
|
||||||
|
|
||||||
_objOwnerID = _obj getVariable["CharacterID","0"];
|
_objOwnerID = _obj getVariable["CharacterID","0"];
|
||||||
@@ -189,4 +192,5 @@ if (_proceed) then {
|
|||||||
player playActionNow "stop";
|
player playActionNow "stop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
TradeInprogress = false;
|
TradeInprogress = false;
|
||||||
|
s_player_deleteBuild = -1;
|
||||||
Reference in New Issue
Block a user