SetActorVelocity
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Sets the calling actor's current Velocity vector in the specified Axis.
- The change applies only to the current frame.
- The sign of the velocity value indicates direction: A negative Z velocity equals speeding downwards.
- Actors on the ground may be impossible to move horizontally, due to friction.
- Gravity is also applied to the actor: you must supply a velocity equal to at least (GetLocalGravity axis) in order to cancel it out.
Syntax
reference.SetActorVelocity axis:X/Y/Z velocity:float
Example
actorRef.SetActorVelocity Z 0
Notes
- This function measures velocity as 0.1 Meter/sec, or 7 Units/sec.