ESM_fnc_hasAccessToTerritory

Input: <ARRAY>

_this select 0: _flagObject <OBJECT>
The territory's flag object
_this select 1: _playerUID <STRING>
The player's UID to check
_this select 2: _minimumAccessLevel <STRING> [Optional]
The minimium access level the player MUST have.
Available options: build, moderator, and owner.
This parameter is optional and defaults to build

Output: <BOOL>

_this: _hasAccess <BOOL>
Whether the player UID has the minimal level access to the territory

Examples

[_flagObject, "76541234567891234"] call ESM_fnc_hasAccessToTerritory;
[_flagObject, "76541234567891234", "owner"] call ESM_fnc_hasAccessToTerritory;