Background for Fallout 4
Member of the ObjectReference script
voidfunctionApplyHavokImpulse(floatafX, floatafY, floatafZ, floatafMagnitude)Native

Description

Wiki Description

Applies a Havok impulse force to this object of the specified direction and magnitude.

Documentation Comment

Apply an impulse to this reference


Caveats

CK Wiki - Notes

  • For this to work for actors, you must call PushActorAway - Actor first, using a bit of force, then call this function.

Parameters

floatafX

CK Wiki Description

X component of the force vector.

floatafY

CK Wiki Description

Y component of the force vector.

floatafZ

CK Wiki Description

Z component of the force vector.

floatafMagnitude

CK Wiki Description

The magnitude of the force vector - how hard to hit this object.


Examples

; Apply a physical force along the x axis with a magnitude of 5 to a cheese wheel
CheeseWheel.ApplyHavokImpulse(1.0, 0.0, 0.0, 5.0)

Auto-Generated Example

float myFloat__afX
float myFloat__afY
float myFloat__afZ
float myFloat__afMagnitude

myObjectReference__toCallFunctionOn.ApplyHavokImpulse(myFloat__afX, myFloat__afY, myFloat__afZ, myFloat__afMagnitude)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.