Arma 3 Scripting

formationLeader

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · Markdown · JSON · original wiki page

Description

Return leader of the formation.

Syntax

formationLeader unitName

Parameters:

Returns: Object

Examples

Example 1

if (formationLeader player != leader player) then
{
    hint "Formation leader is not the group leader.";
};

See also

commandFollow · doFollow · formLeader · isFormationLeader · leader · selectLeader · setLeader

Community notes

Kronzky

Return value is <NULL-OBJECT> if no group members exist.