mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-25 17:31:36 +03:00
Update initDoorManagement.sqf
After upgrading or downgrading doors or gates TheDoor can be null.
This commit is contained in:
@@ -13,6 +13,7 @@ _display = findDisplay 61144;
|
|||||||
_display closeDisplay 2;
|
_display closeDisplay 2;
|
||||||
|
|
||||||
// Check player access
|
// Check player access
|
||||||
|
if (!isNull TheDoor) then {
|
||||||
_hasAccess = [player, TheDoor] call FNC_check_access;
|
_hasAccess = [player, TheDoor] call FNC_check_access;
|
||||||
if (
|
if (
|
||||||
(_hasAccess select 0) or // door owner
|
(_hasAccess select 0) or // door owner
|
||||||
@@ -28,3 +29,6 @@ if (
|
|||||||
} else {
|
} else {
|
||||||
localize "STR_EPOCH_DOORMANAGEMENT_NORIGHTS" call dayz_rollingMessages;
|
localize "STR_EPOCH_DOORMANAGEMENT_NORIGHTS" call dayz_rollingMessages;
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
localize "str_cursorTargetNotFound" call dayz_rollingMessages;
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user