setFormDir: 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|SETFORMDIR]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETFORMDIR]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SETFORMDIR]]
[[Category:Scripting Commands ArmA|SETFORMDIR]]


| ofp |= Game name


<h2 style="color:#000066">'''''group'' setFormDir ''heading'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Set group formation heading. Accepted heading range is 0 to 360. Formation is facing this direction unless enemy is seen. When group is moving, this value is overriden by movement direction. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| group '''setFormDir''' heading |= Syntax


'''group:''' [[Object or Group]]
|p1= group: [[Object or Group]] |= Parameter 1


'''heading:''' [[Number]]
|p2= heading: [[Number]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>group1 setFormDir 180</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Set '''group''' formation '''heading'''.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Accepted heading range is 0 to 360.
<!-- Note Section END -->
</dl>


Formation is facing this direction unless enemy is seen.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETFORMDIR]]
When group is moving, this value is overriden by movement direction.
[[Category:Scripting Commands OFP 1.96|SETFORMDIR]]
 
[[Category:Scripting Commands OFP 1.46|SETFORMDIR]]
 
[[Category:Scripting Commands ArmA|SETFORMDIR]]
'''Example:'''
 
group1 '''setFormDir''' 180

Revision as of 00:12, 2 August 2006

Hover & click on the images for description

Description

Description:
Set group formation heading. Accepted heading range is 0 to 360. Formation is facing this direction unless enemy is seen. When group is moving, this value is overriden by movement direction.
Groups:
Uncategorised

Syntax

Syntax:
group setFormDir heading
Parameters:
group: Object or Group
heading: Number
Return Value:
Nothing

Examples

Example 1:
group1 setFormDir 180

Additional Information

See also:
See also needed

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