Background for Fallout 4
Member of the ObjectReference script
voidfunctionMoveToNode(ObjectReferenceakTarget, stringasNodeName, stringasMatchNodeName="")Native

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 (or its specified node if asMatchNodeName is valid) to the position (and rotation) of the specified node on the specified object's 3D


Caveats


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.

stringasMatchNodeName=""

CK Wiki Description

The name of a node on the moving reference to align with asNodeName.

  • Default:""

Examples

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

Auto-Generated Example

ObjectReference myObjectReference__akTarget
string myString__asNodeName
string myString__asMatchNodeName

myObjectReference__toCallFunctionOn.MoveToNode(myObjectReference__akTarget, myString__asNodeName, myString__asMatchNodeName)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.