ACE3/addons/interaction/functions/fnc_canBecomeLeader.sqf
PabstMirror f0b7b34321 Cleanup
2015-05-14 13:00:56 -05:00

22 lines
415 B
Plaintext

/*
* Author: PabstMirror
* Test if can Become Leader of group
*
* Arguments:
* 0: Target <OBJECT>
* 1: Player <OBJECT>
*
* Return Value:
* Able to become leader of group <BOOL>
*
* Example:
* [player, player] call ace_interaction_fnc_canBecomeLeader
*
* Public: No
*/
#include "script_component.hpp"
PARAMS_2(_target,_player);
(count (units group _player) > 1) && {leader group _player != _player}