mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Thats now a correctly Fix for the exitWith thing
This commit is contained in:
@@ -17,6 +17,7 @@ _activatingPlayer = player;
|
||||
_objOwnerID = _obj getVariable["CharacterID","0"];
|
||||
_isOwnerOfObj = (_objOwnerID == dayz_characterID);
|
||||
|
||||
if (_obj in DZE_DoorsLocked) exitWith { DZE_ActionInProgress = false; cutText ["You must remove the lock to delete this item!", "PLAIN DOWN"]; };
|
||||
if(_obj getVariable ["GeneratorRunning", false]) exitWith {DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_89"), "PLAIN DOWN"];};
|
||||
|
||||
_objectID = _obj getVariable ["ObjectID","0"];
|
||||
|
||||
@@ -238,14 +238,11 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu
|
||||
|
||||
};
|
||||
|
||||
if(_player_deleteBuild && !(_cursorTarget in DZE_DoorsLocked)) then {
|
||||
if(_player_deleteBuild) then {
|
||||
if (s_player_deleteBuild < 0) then {
|
||||
s_player_deleteBuild = player addAction [format[localize "str_actions_delete",_text], "\z\addons\dayz_code\actions\remove.sqf",_cursorTarget, 1, true, true, "", ""];
|
||||
};
|
||||
} else {
|
||||
if (_cursorTarget in DZE_DoorsLocked) then {
|
||||
cutText ["You must remove the lock to delete this item!", "PLAIN DOWN"];
|
||||
};
|
||||
player removeAction s_player_deleteBuild;
|
||||
s_player_deleteBuild = -1;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user