Difference between revisions of "ApplyHavokImpulse - ObjectReference"
Jump to navigation
Jump to search
imported>Cdcooley m (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin) |
imported>Scrivener07 (As with the Skyrim version, this requires you use pushactoraway prior to calling this function on an actor,) |
||
Line 25: | Line 25: | ||
CheeseWheel.ApplyHavokImpulse(1.0, 0.0, 0.0, 5.0) | CheeseWheel.ApplyHavokImpulse(1.0, 0.0, 0.0, 5.0) | ||
</source> | </source> | ||
== Notes == | |||
* For this to work for actors, you must call [[PushActorAway - Actor]] first, using a bit of force, then call this function. | |||
== See Also == | == See Also == | ||
*[[ObjectReference Script]] | *[[ObjectReference Script]] |
Latest revision as of 14:19, 4 May 2018
Member of: ObjectReference Script
Applies a Havok impulse force to this object of the specified direction and magnitude.
Syntax[edit | edit source]
Function ApplyHavokImpulse(float afX, float afY, float afZ, float afMagnitude) native
Parameters[edit | edit source]
- afX: X component of the force vector.
- afY: Y component of the force vector.
- afZ: Z component of the force vector.
- afMagnitude: The magnitude of the force vector - how hard to hit this object.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; 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)
Notes[edit | edit source]
- For this to work for actors, you must call PushActorAway - Actor first, using a bit of force, then call this function.