setDir: Difference between revisions
Jump to navigation
Jump to search
m (VBS2 scripting category removal) |
(mass edit: removing obsolete </dt> and </dd> tags) |
||
Line 34: | Line 34: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on May 9, 2007 - 20:43 CET | <dd class="notedate">Posted on May 9, 2007 - 20:43 CET | ||
<dt class="note">'''[[User:Manny|Manny]]''' | <dt class="note">'''[[User:Manny|Manny]]''' | ||
<dd class="note"> | <dd class="note"> | ||
Though effects of this command remain local, you can do a [[setPos]] afterwards to synchronize the direction on all machines in MP. | Though effects of this command remain local, you can do a [[setPos]] afterwards to synchronize the direction on all machines in MP. | ||
<code>myObj setDir 90; | <code>myObj setDir 90; | ||
myObj setPos getPos myObj;</code> | myObj setPos getPos myObj;</code> | ||
<dd class="notedate">Posted on January 9, 2009 - 22:21 | |||
<dt class="note">'''[[User:Killswitch|Killswitch]]''' | <dd class="notedate">Posted on January 9, 2009 - 22:21 | ||
<dt class="note">'''[[User:Killswitch|Killswitch]]''' | |||
<dd class="note"> | <dd class="note"> | ||
In ArmA, the effect of ''setDir'' is synchronized across the network. | In ArmA, the effect of ''setDir'' is synchronized across the network. | ||
<dd class="notedate">Posted on April 5th, 2011 | |||
<dt class="note">'''[[User:kju|kju]]''' | <dd class="notedate">Posted on April 5th, 2011 | ||
<dt class="note">'''[[User:kju|kju]]''' | |||
<dd class="note"> | <dd class="note"> | ||
In OA 1.59 the comment of Manny still holds true for createVehicle'd empty vehicles by the server. | In OA 1.59 the comment of Manny still holds true for createVehicle'd empty vehicles by the server. | ||
For the player object a local ''setDir'' alone is enough. | For the player object a local ''setDir'' alone is enough. | ||
<dd class="notedate">Posted on July 10, 2010 - 16:34 | |||
<dt class="note">'''[[User:Shuko|Shuko]]''' | <dd class="notedate">Posted on July 10, 2010 - 16:34 | ||
<dt class="note">'''[[User:Shuko|Shuko]]''' | |||
<dd class="note"> | <dd class="note"> | ||
In ArmA 2 OA, this command only makes the unit glance momentarily to the direction. To change his heading more permanently use [[setFormDir]]. | In ArmA 2 OA, this command only makes the unit glance momentarily to the direction. To change his heading more permanently use [[setFormDir]]. | ||
<!-- Note Section END --> | <!-- Note Section END --> |
Revision as of 02:54, 18 October 2011
Description
- Description:
- Sets object heading. Angles are measured in degrees clockwise from north. The accepted heading range is from 0 to 360 Negative angles represent a counter-clockwise angle and the angle can be of any size.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_soldier1 setDir 45
Will set soldier1 to face North East- Example 2:
_soldier1 setDir -675
Will also set soldier1 to face North East
Additional Information
- See also:
- getDirsetFormDir
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
- Posted on May 9, 2007 - 20:43 CET
- Manny
-
Though effects of this command remain local, you can do a setPos afterwards to synchronize the direction on all machines in MP.
myObj setDir 90; myObj setPos getPos myObj;
- Posted on January 9, 2009 - 22:21
- Killswitch
- In ArmA, the effect of setDir is synchronized across the network.
- Posted on April 5th, 2011
- kju
- In OA 1.59 the comment of Manny still holds true for createVehicle'd empty vehicles by the server. For the player object a local setDir alone is enough.
- Posted on July 10, 2010 - 16:34
- Shuko
- In ArmA 2 OA, this command only makes the unit glance momentarily to the direction. To change his heading more permanently use setFormDir.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Scripting Commands ArmA2