SetLinearVelocity

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets the linear velocity on each of the 3 X/Y/Z global axes, of the collision object (if any) attached to the specified node in the calling reference's loaded 3D model.

  • The velocity is in units of 0.1 Meter/sec, or 7 game units/sec.
  • If the optional 5th argument, setLocal, is non-zero, the function sets the velocities relative to the object's local axes.
  • If the 3D model does not have the specified node, or the node does not have a mobile collision object, the function returns 0.

Syntax

[help]
reference.SetLinearVelocity nodeName:string velX:float velY:float velZ:float setLocal:0/1

Example

objectRef.SetLinearVelocity "TumbleweedNV" -95 0 70 1 

See Also