setDir: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| 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. | | 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. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 22: | Line 18: | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code> soldier1 '''setDir''' 45 </code> | |||
Will set soldier1 to face North East | |||
|x2 = <code>soldier1 '''setDir''' -675</code> | |||
Will also set soldier1 to face North East | |||
| | | [[getDir]] |= See also | ||
}} | }} |
Revision as of 00:46, 5 August 2006
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:
- 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