From fb734e30c7a9fc75c087f9328aa60c412db4be25 Mon Sep 17 00:00:00 2001 From: icomrade Date: Mon, 7 Nov 2016 17:24:54 -0500 Subject: [PATCH] allow removal of generator --- SQF/dayz_code/compile/fn_selfActions.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SQF/dayz_code/compile/fn_selfActions.sqf b/SQF/dayz_code/compile/fn_selfActions.sqf index a5f5bb412..bddb98ee0 100644 --- a/SQF/dayz_code/compile/fn_selfActions.sqf +++ b/SQF/dayz_code/compile/fn_selfActions.sqf @@ -443,7 +443,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur }; }; - if (_isModular || _isModularDoor || {_typeOfCursorTarget in DZE_isDestroyableStorage}) then { + if (_isModular || _isModularDoor || _isGenerator || {_typeOfCursorTarget in DZE_isDestroyableStorage}) then { if (_hasToolbox && _hasCrowbar) then { _hasAccess = [player, _cursorTarget] call FNC_check_access; if ((_hasAccess select 0) or (_hasAccess select 2) or (_hasAccess select 3)) then {