ACE3/addons/interaction/functions/fnc_canRenameGroup.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

21 lines
397 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Seb
* Checks if the unit is allowed to rename its group.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* Is this unit allowed to rename its group? <BOOL>
*
* Example:
* player call ace_interaction_fnc_canRenameGroup
*
* Public: No
*/
params [["_unit", objNull, [objNull]]];
GVAR(enableGroupRenaming) && {_unit == leader _unit}