setFormDir: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 27: | Line 27: | ||
([[group]] BIS_Crew1) [[setFormDir]] ([[getDir]] BIS_Armor);</code> | ([[group]] BIS_Crew1) [[setFormDir]] ([[getDir]] BIS_Armor);</code> | ||
| [[setDir]], [[setVectorDir]], [[setVectorDirAndUp]], [[resetSubgroupDirection]], [[formation]], [[formationLeader]], [[formationMembers]], [[formationTask]], [[formationDirection]], [[formationPosition]] | |seealso= [[setDir]], [[setVectorDir]], [[setVectorDirAndUp]], [[resetSubgroupDirection]], [[formation]], [[formationLeader]], [[formationMembers]], [[formationTask]], [[formationDirection]], [[formationPosition]] | ||
}} | }} | ||
Revision as of 00:02, 17 February 2021
Description
- Description:
- Description needed
- Groups:
- Groups
Syntax
- Syntax:
- Syntax needed
- Parameters:
- group: Object or Group
- heading: Number
- Return Value:
- Return value needed
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);
Additional Information
- See also:
- setDirsetVectorDirsetVectorDirAndUpresetSubgroupDirectionformationformationLeaderformationMembersformationTaskformationDirectionformationPosition
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 November 22, 2014 - 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:
_unit setFormDir 45; _unit setDir 45; hint str direction _unit; //45