mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
22b4788891
* added movable markers option * added restrictions * added local events * formatting + small fixes * Events for start and end modified + small adjusts * minor fixes * lazy eval * Alt as modifier key * Update XEH_postInit.sqf * Skip UI EH on headless
29 lines
634 B
Plaintext
29 lines
634 B
Plaintext
/*
|
|
* Author: chris579
|
|
* Checks whether the player can move markers.
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return Value:
|
|
* Whether the player can move markers <BOOL>
|
|
*
|
|
* Example:
|
|
* [] call ace_markers_fnc_canMoveMarker
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
switch (GVAR(moveRestriction)) do {
|
|
case MOVE_RESTRICTION_ALL: { true };
|
|
case MOVE_RESTRICTION_ADMINS: { IS_ADMIN };
|
|
case MOVE_RESTRICTION_GROUP_LEADERS: {
|
|
leader group ACE_player == ACE_player
|
|
};
|
|
case MOVE_RESTRICTION_GROUP_LEADERS_ADMINS: {
|
|
(leader group ACE_player == ACE_player) || IS_ADMIN
|
|
};
|
|
default { true };
|
|
};
|