setFormDir
Jump to navigation
Jump to search
Description
- 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.
- Groups:
- Groups
Syntax
- Syntax:
- group setFormDir heading
- Parameters:
- group: Object or Group
- heading: Number
- Return Value:
- Nothing
Examples
- Example 1:
- _group1 setFormDir 180;
- Example 2:
- Example 3:
Additional Information
- See also:
- setDir setVectorDir setVectorDirAndUp resetSubgroupDirection formation formationLeader formationMembers formationTask formationDirection formationPosition
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
- Posted on 2014-11-22 - 20:03 (UTC)
- Killzone_Kid
- When applied to AI, setFormDir will set unit formation direction, which in turn will force unit to change direction to match formation direction, however unit will stop turning as soon as unit direction is +/- 30 degrees of the formation direction. To precisely match formation direction, additional setDir is required:
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Groups
- Scripting Commands: Global Effect