setVectorDir: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (xyz damn it) |
m (note formating) |
||
Line 29: | Line 29: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on March 16, 2008 - 09:50 | |||
<dt class="note">'''[[User:Str|Str]]'''<dd class="note">Command can be also used to rotate camera in all three axis. | |||
<dd class="notedate">Posted on 21:06, 3 March 2009 (CET) | |||
<dt class="note">[[User:General Barron|General Barron]]<dd class="note"> | |||
setVectorDir can only influence an object's pitch. It can not influence bank. Example: | setVectorDir can only influence an object's pitch. It can not influence bank. Example: | ||
<code>player setVectorDir [0,0,1]</code> | |||
*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. | |||
You can't directly pitch an object beyond 90 degrees, because this would change its facing direction. You must first flip it's direction using setDir, then you must bank the object 180 degrees, THEN you pitch the object appropriately. | You can't directly pitch an object beyond 90 degrees, because this would change its facing direction. You must first flip it's direction using setDir, then you must bank the object 180 degrees, THEN you pitch the object appropriately. | ||
<!-- Note Section END --> | <!-- Note Section END --> | ||
</dl> | </dl> |
Revision as of 14:02, 29 May 2014
Description
- Description:
- Set object's direction vector. Up vector will remain unchanged.
- Groups:
- Uncategorised
Syntax
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
- Posted on March 16, 2008 - 09:50
- Str
- Command can be also used to rotate camera in all three axis.
- Posted on 21:06, 3 March 2009 (CET)
- General Barron
-
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.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters