ACE3/addons/interaction/functions/fnc_canBecomeLeader.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

21 lines
368 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: PabstMirror
* Test if can Become Leader of group.
*
* Arguments:
* 1: Unit <OBJECT>
*
* Return Value:
* Able to become leader of group <BOOL>
*
* Example:
* [player] call ace_interaction_fnc_canBecomeLeader
*
* Public: No
*/
params ["_unit"];
count units group _unit > 1 && {leader group _unit != _unit}