SetVerticalVelocity

Revision as of 18:46, 4 January 2012 by imported>8asrun6aer (Created page with "{{Function | origin = OBSE | summary = Sets the vertical velocity for an actor. This is primarily useful for actors who are jumping or falling. Positive values will cause th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(void) reference.SetVerticalVelocity velocity:float

Sets the vertical velocity for an actor. This is primarily useful for actors who are jumping or falling. Positive values will cause the actor to move upwards, negative values will cause him to move downwards, and zero will prevent him from moving vertically for the current frame. On the subsequent frame, acceleration due to gravity will be applied to the new velocity. This means that if you set a falling actor's velocity to zero, on the next frame he will appear to accelerate as if he had just begun falling.

See Also