ACE3/addons/interaction/functions/fnc_canBecomeLeader.sqf

22 lines
415 B
Plaintext
Raw Normal View History

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:
* 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}