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

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