setVectorDirAndUp

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Armed Assault version 1.09Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Armed Assault
Version:
1.09

Description

Description:
Set object's orientation (given as direction and up vector).

Syntax

Syntax:
vehicle setVectorDirAndUp [[x, z, y],[x, z, y]]
Parameters:
vehicle: Object
[[x, z, y],[x, z, y]]: Array
Return Value:
Nothing

Examples

Additional Information

Multiplayer:
-
See also:
vectorUp, setVectorUp, vectorDir, setVectorDir

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Posted on March 16, 2008 - 09:50
Str
Command can be also used to rotate camera in all three axis (which also mean it's possible to set camera bank).

Posted on May 9, 2008 - 09:32
General Barron
The object's vectorDir can only control its pitch, while its vectorUp can only control its bank. To set an object's yaw (direction), use the setdir command, before using this command.


You would think vectorUp would control pitch as well, but any pitch that would be set due to vectorUp is ignored. The same is true with vectorDir and yaw; any vectorDir that would adjust yaw is also ignored. If this doesn't make sense, try to visualize it with a box or soda can.


This command does NOT work with values relative to a unit, but rather it works with world vectors (think world coordinates as opposed to model coordinates). As a result, this command can be difficult to use in many situations, because the input values needed to get a certain pitch / bank for an object vary, depending on what direction the object is facing (yaw).


A function to set an object's pitch / bank can be found here

Posted on October 23rd, 2009 - 18:39
Chris330

Note this odd command may now be better understood. There's a thread about it here:

BI Studios Forum Thread

Bottom Section

Personal tools