SetVelocity

Revision as of 03:43, 17 August 2011 by imported>Mitchalek (Fixed: gravity should be divided by the value)
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(void) SetVelocity xVel:float yVel:float zVel:float

Sets the x, y, and z components of the actor's velocity. The change applies only to the current frame.


Note

  • Actors on the ground may be impossible to move due to friction; use MoveTo or similar to lift them off the ground.
  • Gravity is also applied to the actor: you must supply a velocity equal to at least ( -(GetLocalGravity axis) / (21+1/3) ) on each axis in order to cancel it out.