Thats now a correctly Fix for the exitWith thing

This commit is contained in:
Skaronator
2013-12-15 18:22:34 +01:00
parent b20ce595dc
commit ed3cd2219c
2 changed files with 2 additions and 4 deletions

View File

@@ -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"];

View File

@@ -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;
};