Arma 3 Scripting

Command in Groups

setFormDir

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets 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 overridden by movement direction. If the new direction is noticeably different from the old direction (approx +/- 15 degrees), units will change positions changing formationDirection.

Syntax

group setFormDir heading

Parameters:

Returns: Nothing

Examples

Example 1

_group1 setFormDir 180;

Example 2

_unit1 setFormDir random 360;

Example 3

//center the main turret
(group BIS_Crew1) setFormDir (getDir BIS_Armor);

See also

setDir · setVectorDir · setVectorDirAndUp · resetSubgroupDirection · formation · formationLeader · formationMembers · formationTask · formationDirection · formationPosition