setFormDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(example)
Line 19: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_group1 setFormDir 180</pre> |= Example 1
|x1= <code>_group1 [[setFormDir]] 180;</code> |= Example 1
|x2= <code>_unit1 [[setFormDir]] [[random]] 360;</code> |= Example 2


|x2= <pre>//center the main turret
|x4= <code>//center the main turret
(group BIS_Crew1) setFormDir (getDir BIS_Armor);
(group BIS_Crew1) [[setFormDir]] (getDir BIS_Armor);
(group BIS_Crew2) setFormDir (getDir BIS_Armor);</pre> |= Example 2
(group BIS_Crew2) [[setFormDir]] (getDir BIS_Armor);</code> |= Example 3
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 18:06, 24 May 2014

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;
Example 2:
_unit1 setFormDir random 360;
Example 4:
//center the main turret (group BIS_Crew1) setFormDir (getDir BIS_Armor); (group BIS_Crew2) setFormDir (getDir BIS_Armor);

Additional Information

See also:
setDir

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