Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Introduced in

Version:1.00

Description

Description:

Set object

's

direction vector.

Since version +1

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

's

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 -
Parameter specifying
  • Specifies if the vectors are relative to parent (
Optional
  • 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