mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +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;
|
||||
|
||||
// Check player access
|
||||
if (!isNull TheDoor) then {
|
||||
_hasAccess = [player, TheDoor] call FNC_check_access;
|
||||
if (
|
||||
(_hasAccess select 0) or // door owner
|
||||
@@ -28,3 +29,6 @@ if (
|
||||
} else {
|
||||
localize "STR_EPOCH_DOORMANAGEMENT_NORIGHTS" call dayz_rollingMessages;
|
||||
};
|
||||
} else {
|
||||
localize "str_cursorTargetNotFound" call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user