mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
21 lines
368 B
Plaintext
21 lines
368 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* 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
|
|
*/
|
|
|
|
params ["_unit"];
|
|
|
|
count units group _unit > 1 && {leader group _unit != _unit}
|