Description
Wiki Description
Moves this object to the position (and rotation) of the specified node on the specified object's 3D
Documentation Comment
Moves this object to the position (and rotation) of the specified node on the specified object's 3D
Caveats
CK Wiki - Notes
- MoveToNode can unload an object's 3D and reset any ObjectReference.SetMotionType(...) changes you've made to the object. If you know for sure that the object's 3D is loaded, ObjectReference.SplineTranslateToRefNode(...) can be used with a very high speed value to instantaneously teleport the object to the proper node, without the risk of unloading its 3D or resetting its physics.
Parameters
ObjectReferenceakTarget
CK Wiki Description
The target reference that contains the interaction location to move to.
stringasNodeName
CK Wiki Description
The name of the node to match position and rotation to.
Examples
; Move the sword to bob's hand
Sword.MoveToNode(Bob, "Hand")Auto-Generated Example
ObjectReference myObjectReference__akTarget
string myString__asNodeName
myObjectReference__toCallFunctionOn.MoveToNode(myObjectReference__akTarget, myString__asNodeName)