ACE3/addons/interaction/functions/fnc_canBecomeLeader.sqf
2015-09-28 15:37:18 +02:00

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}