setDir: Difference between revisions
 (add. ArmA2 classification)  | 
				 (add. classification)  | 
				||
| Line 51: | Line 51: | ||
[[Category:Scripting Commands ArmA|SETDIR]]  | [[Category:Scripting Commands ArmA|SETDIR]]  | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]  | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]  | ||
[[Category:Scripting Commands VBS2|{{uc:{{PAGENAME}}}}]]  | |||
Revision as of 01:45, 2 December 2009
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 45Will set soldier1 to face North East- Example 2:
 _soldier1 setDir -675Will also set soldier1 to face North East
Additional Information
- See also:
 - getDir
 
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.
 
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
 - Scripting Commands VBS2