PushActorAway

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

PushActorAway Knocks down (ragdolls) one actor and pushes it away from another with a given force.

Syntax

[help]
[source:ref].PushActorAway target:ref force:int

Example

BuddyRef.PushActorAway FredRef 10

Fred would move away from Buddy with a Havok force of 10.

BuddyRef.PushActorAway FredRef -50

Fred will be pulled towards Buddy with a Havok force of 50. If they are standing close enough, Fred will slide past Buddy, pushing Buddy away in the process.

Notes

  • Force is an integer value.
  • An actor that has been pushed can have its inventory accessed by the player until the actor gets up again.
  • Will have no effect on actors that have the "No Knockdowns" flag set on their base record.
  • If no calling REF is specified then the target will be launched straight up in the air with the force specified.

See Also