Page tree
Skip to end of metadata
Go to start of metadata


Introduced in

Version:1.00

Description

Description:

Set object direction vector.

Since V1.30+, accepts an additional parameter which, when the object is attached, specifies if vector applied is relative to parent object orientation.

Syntax

Syntax:vehicle setVectorDir [vectorDir, relative]
Parameters:
  • vehicle: Object - Object that vector is applied to.
  • vectorDir: Array - Direction vector applied to object.
  • relative: Boolean - Specifies if the vectors are relative to parent (optional, default: false) (V1.30+).
Return Value:Nothing

Examples

Examples:
vehicle setVectorDir [[0,1,0],true] 

Additional Information

See also:fn vbs setPitchBank, vectorUp, setVectorUp, setVectorDirAndUp, vectorDir
Multiplayer:
Problems:

Notes