<article class="uk-article"> <h1 class="uk-article-title">ESM_fnc_hasAccessToTerritory</h1> <p class="uk-article-meta">Checks to see if a player UID has minimium access level to a territory</p> <h4 class="uk-margin-remove">Input: <code><span class="esm-text-color-toast-yellow"><ARRAY></span></code></h4> <dl class="uk-description-list"> <dd><code>_this select 0: <span class="esm-text-color-toast-blue">_flagObject</span> <span class="esm-text-color-toast-yellow"><OBJECT></span></code></dd> <dd>The territory's flag object</dd> <dd><code>_this select 1: <span class="esm-text-color-toast-blue">_playerUID</span> <span class="esm-text-color-toast-yellow"><STRING></span></code></dd> <dd>The player's UID to check</dd> <dd><code>_this select 2: <span class="esm-text-color-toast-blue">_minimumAccessLevel</span> <span class="esm-text-color-toast-yellow"><STRING></span> <span class="esm-text-color-toast-green">[Optional]</span></code></dd> <dd>The minimium access level the player MUST have.<br>Available options: <code>build</code>, <code>moderator</code>, and <code>owner</code>.<br>This parameter is optional and defaults to <code>build</code></dd> </dl> <h4 class="uk-margin-remove">Output: <code><span class="esm-text-color-toast-yellow"><BOOL></span></code></h4> <dl class="uk-description-list"> <dd><code>_this: <span class="esm-text-color-toast-blue">_hasAccess</span> <span class="esm-text-color-toast-yellow"><BOOL></span></code></dd> <dd>Whether the player UID has the minimal level access to the territory</dd> </dl> <h4 class="uk-margin-remove">Examples</h4> <pre>[_flagObject, "76541234567891234"] call ESM_fnc_hasAccessToTerritory;</pre> <pre>[_flagObject, "76541234567891234", "owner"] call ESM_fnc_hasAccessToTerritory;</pre> </article>