mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
365 B
Plaintext
21 lines
365 B
Plaintext
/*
|
|
* Author: PabstMirror
|
|
* Test if can Become Leader of group.
|
|
*
|
|
* Arguments:
|
|
* 1: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Able to become leader of group <BOOL>
|
|
*
|
|
* Example:
|
|
* [player] call ace_interaction_fnc_canBecomeLeader
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
|
|
count units group _unit > 1 && {leader group _unit != _unit}
|