MoveToNode - ObjectReference
Member of: ObjectReference Script
Moves this object to the position (and rotation) of the specified node on the specified object's 3D
SyntaxEdit
Function MoveToNode(ObjectReference akTarget, string asNodeName, string asMatchNodeName = "") native
ParametersEdit
- akTarget: The target reference that contains the interaction location to move to.
- asNodeName: The name of the node to match position and rotation to.
- asMatchNodeName: The name of a node on the moving reference to align with asNodeName.
- Default: ""
Return ValueEdit
None.
ExamplesEdit
; Put the hilt of the sword in bob's hand
Sword.MoveToNode(Bob, "HandNode", "HiltNode")