MoveToNode - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

Moves this object to the position (and rotation) of the specified node on the specified object's 3D

Syntax

Function MoveToNode(ObjectReference akTarget, string asNodeName, string asMatchNodeName = "") native

Parameters

  • 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 Value

None.

Examples

; Put the hilt of the sword in bob's hand
Sword.MoveToNode(Bob, "HandNode", "HiltNode")

See Also