2023-09-12 18:58:10 +00:00
|
|
|
#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:
|
2015-05-09 02:47:15 +00:00
|
|
|
* 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}
|