setFormation: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "|size=0.8" to "|size= 0.75")
 
(49 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|SETFORMATION]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97|SETFORMATION]]
[[Category:Scripting Commands OFP 1.46|SETFORMATION]]
[[Category:Scripting Commands ArmA|SETFORMATION]]


|game1= ofp
|version1= 1.00


<h2 style="color:#000066">'''''group'' setFormation ''formation'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''group:''' [[Object or Group]]
|game5= arma2oa
|version5= 1.50


'''formation:''' [[String]]
|game6= tkoh
|version6= 1.00


'''Type of returned value:'''
|game7= arma3
|version7= 0.50


[[Nothing]]
|gr1= Groups


'''Description:'''
|arg= local


Set '''group formation'''.<br>
|eff= global
'''Formation''' is one of:


* '''"COLUMN"'''
|descr= Set group formation.
* '''"STAG COLUMN"'''
* '''"WEDGE"'''
* '''"ECH LEFT"'''
* '''"ECH RIGHT"'''
* '''"VEE"'''
* '''"LINE"'''


|s1= group [[setFormation]] formation


'''Example:'''
|p1= group: [[Object]] or [[Group]]


groupOne '''setFormation''' '''"LINE"'''
|p2= formation: [[String]] - can be one of:
{{Columns|2|
* "COLUMN"
* "STAG COLUMN"
* "WEDGE"
* "ECH LEFT"
* "ECH RIGHT"
* "VEE"
* "LINE"
* {{GVI|arma1|1.00|size= 0.75}} "FILE"
* {{GVI|arma1|1.00|size= 0.75}} "DIAMOND"
|y
}}
 
|r1= [[Nothing]]
 
|x1= <sqf>_groupOne setFormation "LINE";</sqf>
 
|seealso= [[Mission_Editor:_Waypoints#Formation|formations description]] [[formation]]
}}

Latest revision as of 12:10, 21 December 2022

Hover & click on the images for description

Description

Description:
Set group formation.
Groups:
Groups

Syntax

Syntax:
group setFormation formation
Parameters:
group: Object or Group
formation: String - can be one of:
  • "COLUMN"
  • "STAG COLUMN"
  • "WEDGE"
  • "ECH LEFT"
  • "ECH RIGHT"
  • "VEE"
  • "LINE"
  • Logo A1 black.png1.00 "FILE"
  • Logo A1 black.png1.00 "DIAMOND"
Return Value:
Nothing

Examples

Example 1:
_groupOne setFormation "LINE";

Additional Information

See also:
formations description formation

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