mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix mistake in remove.sqf
DZE_DoorsLocked is a list of strings, not objects. I'm surprised no one noticed this before.
This commit is contained in:
@@ -22,7 +22,6 @@ if (DZE_permanentPlot) then {
|
|||||||
_isOwnerOfObj = (_objOwnerID == dayz_characterID);
|
_isOwnerOfObj = (_objOwnerID == dayz_characterID);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_obj in DZE_DoorsLocked) exitWith {dayz_actionInProgress = false; localize "STR_EPOCH_ACTIONS_20" call dayz_rollingMessages;};
|
|
||||||
if (_obj getVariable ["GeneratorRunning", false]) exitWith {dayz_actionInProgress = false; localize "str_epoch_player_89" call dayz_rollingMessages;};
|
if (_obj getVariable ["GeneratorRunning", false]) exitWith {dayz_actionInProgress = false; localize "str_epoch_player_89" call dayz_rollingMessages;};
|
||||||
|
|
||||||
_objectID = _obj getVariable ["ObjectID","0"];
|
_objectID = _obj getVariable ["ObjectID","0"];
|
||||||
@@ -31,6 +30,7 @@ _objectUID = _obj getVariable ["ObjectUID","0"];
|
|||||||
_isOk = true;
|
_isOk = true;
|
||||||
_proceed = false;
|
_proceed = false;
|
||||||
_objType = typeOf _obj;
|
_objType = typeOf _obj;
|
||||||
|
if (_objType in DZE_DoorsLocked) exitWith {dayz_actionInProgress = false; localize "STR_EPOCH_ACTIONS_20" call dayz_rollingMessages;};
|
||||||
|
|
||||||
// Chance to break tools
|
// Chance to break tools
|
||||||
_isDestructable = _obj isKindOf "BuiltItems";
|
_isDestructable = _obj isKindOf "BuiltItems";
|
||||||
|
|||||||
Reference in New Issue
Block a user