GetActorVelocity

From the Fallout3 GECK Wiki
Revision as of 13:09, 22 February 2017 by imported>Jazzisparis (Created page with "{{Function |origin = JIP |summary = Returns the calling actor's current '''velocity''' vector in the (optional) specified '''axis'''. If no axis is specified, the total, abs...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the JIP NVSE Plugin.

Description

Returns the calling actor's current velocity vector in the (optional) specified axis. If no axis is specified, the total, absolute velocity (product of all three axes) is returned.

Syntax

[help]
(velocity:float) reference.GetActorVelocity axis:X/Y/Z

Example

set fVelocity to actorRef.GetActorVelocity
set fVelocityZ to actorRef.GetActorVelocity Z

Notes

  • The sign of the returned value indicates direction: a negative Z velocity indicated the actor is speeding downwards.

See Also