setVectorDir: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Can only influence pitch) |
||
Line 26: | Line 26: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
setVectorDir can only influence an object's pitch. It can not influence bank. Example: | |||
player setVectorDir [0,0,1] | |||
If the player is facing 0 degrees (north), then this will do NOTHING. | |||
If the player is facing 90 degrees (east), then this will make him pitch 90 degrees up. | |||
--[[User:General Barron|General Barron]] 21:06, 3 March 2009 (CET) | |||
<dd class="notedate">Posted on March 16, 2008 - 09:50</dd> | <dd class="notedate">Posted on March 16, 2008 - 09:50</dd> | ||
<dt class="note">'''[[User:Str|Str]]'''</dt><dd class="note">Command can be also used to rotate camera in all three axis.</dd> | <dt class="note">'''[[User:Str|Str]]'''</dt><dd class="note">Command can be also used to rotate camera in all three axis.</dd> |
Revision as of 22:06, 3 March 2009
Description
- Description:
- Set object's direction vector. Up vector will remain unchanged.
- Groups:
- Uncategorised
Syntax
- Syntax:
- object setVectorDir [x, z, y]
- Parameters:
- object: Object
- [x, z, y]: Array
- Return Value:
- Nothing
Examples
- Examples:
- Example needed
Additional Information
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
-
setVectorDir can only influence an object's pitch. It can not influence bank. Example:
player setVectorDir [0,0,1]
If the player is facing 0 degrees (north), then this will do NOTHING.
If the player is facing 90 degrees (east), then this will make him pitch 90 degrees up.
--General Barron 21:06, 3 March 2009 (CET)
- Posted on March 16, 2008 - 09:50
- Str
- Command can be also used to rotate camera in all three axis.