mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Update fn_selfActions.sqf
This commit is contained in:
@@ -396,7 +396,8 @@ if (!isNull _cursorTarget && _noChange && !_inVehicle && !_isPZombie && _canDo &
|
|||||||
if (_restrict || _isModular || _isStatic || {_typeOfCursorTarget in DZE_isDestroyableStorage}) then {
|
if (_restrict || _isModular || _isStatic || {_typeOfCursorTarget in DZE_isDestroyableStorage}) then {
|
||||||
if (_hasToolbox && _hasCrowbar) then {
|
if (_hasToolbox && _hasCrowbar) then {
|
||||||
_hasAccess = [player, _cursorTarget] call FNC_check_access;
|
_hasAccess = [player, _cursorTarget] call FNC_check_access;
|
||||||
if ((_hasAccess select 2) || (_hasAccess select 3) || (_isStash && (_hasAccess select 0))) then {
|
local _noPlotBuildings = ["WorkBench_DZ","FuelPump_DZ","Generator_DZ"];
|
||||||
|
if ((_hasAccess select 2) || (_hasAccess select 3) || ((_isStash || _typeOfCursorTarget in _noPlotBuildings) && (_hasAccess select 0))) then {
|
||||||
_hasDeconstructAccess = true;
|
_hasDeconstructAccess = true;
|
||||||
_player_deleteBuild = true;
|
_player_deleteBuild = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user