- Found in:
- Vanilla
Description
Wiki Description
Sets the object's havok motion type. This function is widely used as part of the included defaultDisableHavokOnLoad script, which is intended to make physics-enabled objects behave as if they were static.
Documentation Comment
Sets the motion type of the reference
aeMotionType: The type of motion (see properties at end of file)
abImmediatelySimulate: If true, the object will immedately simulate (i.e. as if the player bumped into it)
Parameters
intaeMotionType
CK Wiki Description
New Havok motion type. Allowed values are:* Motion_Dynamic:The object will be simulated by Havok (fall, etc...)
- Motion_Keyframed:The object will NOT be simulated by Havok (will only move if forced to, through ObjectReference.SetPosition(...) or ObjectReference.TranslateTo(...))
boolabImmediatelySimulate=true
Examples
; Set the rock to no longer be simulated
Rock.SetMotionType(Rock.Motion_Keyframed); Set the rock to be simulated, but not to move until touched
Rock.SetMotionType(Rock.Motion_Dynamic, false)Auto-Generated Example
int myInt__aeMotionType
bool myBool__abImmediatelySimulate
myObjectReference__toCallFunctionOn.SetMotionType(myInt__aeMotionType, myBool__abImmediatelySimulate)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
