Common - Add FUNC(hasZeusAccess) (#9252)

* add fnc_hasZeusAccess

* header

* Update addons/common/functions/fnc_hasZeusAccess.sqf

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
Grim 2023-07-10 06:45:22 +03:00 committed by GitHub
parent 1b8c56f0be
commit 8032ccacfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -105,6 +105,7 @@ PREP(handleModifierKey);
PREP(handleModifierKeyUp);
PREP(hasItem);
PREP(hasMagazine);
PREP(hasZeusAccess);
PREP(headBugFix);
PREP(hideUnit);
PREP(interpolateFromArray);

View File

@ -0,0 +1,19 @@
#include "script_component.hpp"
/*
* Author: LinkIsGrim
* Check if current player has Zeus access
*
* Arguments:
* None
*
* Return Value:
* Has Zeus <BOOL>
*
* Example:
* call ace_common_fnc_hasZeusAccess
*
* Public: Yes
*/
// Use of player is intentional
!isNull getAssignedCuratorLogic player // return