formation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|FORMATION]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|FORMATION]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|FORMATION]]
[[Category:Scripting Commands ArmA|FORMATION]]


| ofp |= Game name


<h2 style="color:#000066">'''formation ''grp'''''</h2>
|1.00|= Game version


|arg= global |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Returns the current formation of a group. |= Description
____________________________________________________________________________________________


'''grp:''' [[Object or Group]]
| '''formation''' grp |= Syntax


'''Type of returned value:'''
| [[String]] - 
returns either "COLUMN", "STAG COLUMN", "WEDGE", "ECH LEFT", "ECH RIGHT", "VEE" or "LINE" |= Return value
____________________________________________________________________________________________
 
|x1= <pre>formation group player</pre>


[[String]]
returns "WEDGE" |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[formLeader]], [[setFormation]] |= See also


Formation of the group.
}}


Can be one of:
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


* "COLUMN"
<!-- Note Section END -->
* "STAG COLUMN"
</dl>
* "WEDGE"
* "ECH LEFT"
* "ECH RIGHT"
* "VEE"
* "LINE"


 
<h3 style="display:none">Bottom Section</h3>
'''Example:'''
[[Category:Scripting Commands|FORMATION]]
 
[[Category:Scripting Commands OFP 1.96|FORMATION]]
_state = '''formation''' [[group]] [[player]]
[[Category:Scripting Commands OFP 1.46|FORMATION]]
[[Category:Scripting Commands ArmA|FORMATION]]

Revision as of 00:17, 2 August 2006

Hover & click on the images for description

Description

Description:
Returns the current formation of a group.
Groups:
Uncategorised

Syntax

Syntax:
formation grp
Return Value:
String - returns either "COLUMN", "STAG COLUMN", "WEDGE", "ECH LEFT", "ECH RIGHT", "VEE" or "LINE"

Examples

Example 1:
formation group player
returns "WEDGE"

Additional Information

See also:
formLeadersetFormation

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

Bottom Section