MoveToNode - ObjectReference
Jump to navigation
Jump to search
Member of: ObjectReference Script
Moves this object to the position (and rotation) of the specified node on the specified object's 3D
Syntax[edit | edit source]
Function MoveToNode(ObjectReference akTarget, string asNodeName) native
Parameters[edit | edit source]
- akTarget: The target reference that contains the interaction location to move to.
- asNodeName: The name of the node to match position and rotation to.
Return Value[edit | edit source]
None.
Examples[edit | edit source]
; Move the sword to bob's hand
Sword.MoveToNode(Bob, "Hand")
Notes[edit | edit source]
- MoveToNode can unload an object's 3D and reset any motion type changes you've made to the object. If you know for sure that the object's 3D is loaded, 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.