formationLeader: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|gr1= Unit Control |GROUP1=
|gr1= Unit Control


| Return leader of the formation. |DESCRIPTION=
| Return leader of the formation.


| [[Object]] <nowiki>=</nowiki> '''formationLeader''' unitName|SYNTAX=
| [[Object]] <nowiki>=</nowiki> '''formationLeader''' unitName


|p1= unitName: [[Object]] |PARAMETER1=
|p1= unitName: [[Object]]


| [[Object]] |RETURNVALUE=
| [[Object]]
|x1= <pre>? (formationLeader player != leader player) :
|x1= <pre>? (formationLeader player != leader player) :
  hint "Formation leader is not the group leader."</pre> |EXAMPLE1=
  hint "Formation leader is not the group leader."</pre>


| [[commandFollow]], [[doFollow]], [[formLeader]], [[isFormationLeader]], [[leader]], [[selectLeader]], [[setLeader]] |SEEALSO=
| [[commandFollow]], [[doFollow]], [[formLeader]], [[isFormationLeader]], [[leader]], [[selectLeader]], [[setLeader]]


}}
}}

Revision as of 00:36, 18 January 2021

Hover & click on the images for description

Description

Description:
Return leader of the formation.
Groups:
Unit Control

Syntax

Syntax:
Object = formationLeader unitName
Parameters:
unitName: Object
Return Value:
Object

Examples

Example 1:
? (formationLeader player != leader player) :
 hint "Formation leader is not the group leader."

Additional Information

See also:
commandFollowdoFollowformLeaderisFormationLeaderleaderselectLeadersetLeader

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Posted on December 2, 2006 - 00:46
Kronzky
Return value is <NULL-OBJECT> if no group members exist.

Bottom Section