ACE3/addons/interaction/functions/fnc_canBecomeLeader.sqf

21 lines
365 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2015-04-13 05:23:00 +00:00
/*
* Author: PabstMirror
2015-09-28 13:37:18 +00:00
* Test if can Become Leader of group.
2015-04-13 05:23:00 +00:00
*
* Arguments:
2015-09-28 13:37:18 +00:00
* 1: Unit <OBJECT>
2015-04-13 05:23:00 +00:00
*
* Return Value:
* Able to become leader of group <BOOL>
2015-04-13 05:23:00 +00:00
*
* Example:
2015-09-28 13:37:18 +00:00
* [player] call ace_interaction_fnc_canBecomeLeader
2015-04-13 05:23:00 +00:00
*
* Public: No
*/
2015-09-28 13:37:18 +00:00
params ["_unit"];
2015-04-13 05:23:00 +00:00
2015-09-28 13:37:18 +00:00
count units group _unit > 1 && {leader group _unit != _unit}