PushActorNoRagdoll

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

An alternate version of PushActorAway/PushActorAwayAlt. Pushes the calling actor in a specified direction, without knocking it down or ragdoll-ing it.

The function takes 3 arguments:

  • The 1st argument specifies the Havok force applied on the actor. A positive value pushes the actor away, whereas a negative value pulls it towards the opposite direction.
  • The 2nd argument specifies the direction, as a global Z-angle.
  • The 3rd argument (optional) may alternatively be used to specify the direction as relative to the position of an object reference.

Syntax

[help]
actor.PushActorNoRagdoll force:int directionAng:float originRef:ref

Example

actorRef.PushActorNoRagdoll 10 -60
actorRef.PushActorNoRagdoll 15 0 player 

See Also