Background for Fallout 4
Member of the ObjectReference script
voidfunctionSplineTranslateToRefNode(ObjectReferencearTarget, stringarNodeName, floatafTangentMagnitude, floatafSpeed, floatafMaxRotationSpeed=0.0)Native

Description

Wiki Description

Makes the object translate to a node on the passed reference's 3D (matching position and rotation) at the given speed using a spline.

Documentation Comment

Makes the reference translate to the target node's ref/orient on a spline at the given speed


Caveats


Parameters

ObjectReferencearTarget

CK Wiki Description

The target containing the node

stringarNodeName

CK Wiki Description

The name of the node to match

floatafTangentMagnitude

CK Wiki Description

Magnitude of the spline tangents

floatafSpeed

CK Wiki Description

Movement Speed in game units per second. afSpeed is clamped to a minimum of 1.0

floatafMaxRotationSpeed=0.0

CK Wiki Description

The maximum rotation speed (Default is 0 to mean "don't clamp rotation speed")

  • Default:0

Examples

; Translate the bird ref to the rock landing node with a low spline magnitude and speed
Bird.SplineTranslateToRefNode(Rock, "landing", 1.0, 1.0)
; Translate the bird ref to the rock landing node with a low spline magnitude and speed, and low rotation speed
Bird.SplineTranslateToRefNode(Rock, "landing", 1.0, 1.0, 10)

Auto-Generated Example

ObjectReference myObjectReference__arTarget
string myString__arNodeName
float myFloat__afTangentMagnitude
float myFloat__afSpeed
float myFloat__afMaxRotationSpeed

myObjectReference__toCallFunctionOn.SplineTranslateToRefNode(myObjectReference__arTarget, myString__arNodeName, myFloat__afTangentMagnitude, myFloat__afSpeed, myFloat__afMaxRotationSpeed)

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.