2015-04-13 05:23:00 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
|
|
|
* Test if can Become Leader of group
|
|
|
|
*
|
|
|
|
* Arguments:
|
2015-05-09 02:55:41 +00:00
|
|
|
* 0: Target <OBJECT>
|
|
|
|
* 1: Player <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-05-14 18:00:56 +00:00
|
|
|
* [player, player] call ace_interaction_fnc_canBecomeLeader
|
2015-04-13 05:23:00 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
PARAMS_2(_target,_player);
|
|
|
|
|
|
|
|
(count (units group _player) > 1) && {leader group _player != _player}
|