mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
394 B
Plaintext
21 lines
394 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}
|