Background for Fallout 4
Member of the ObjectReference script
voidfunctionSplineTranslateTo(floatafX, floatafY, floatafZ, floatafXAngle, floatafYAngle, floatafZAngle, floatafTangentMagnitude, floatafSpeed, floatafMaxRotationSpeed=0.0)Native

Description

Wiki Description

Makes the object translate to the passed in position and orientation at the given speed using a spline.

Documentation Comment

Makes the reference translate to the given position/orientation on a spline


Caveats


Parameters

floatafX

CK Wiki Description

Position along the X axis.

floatafY

CK Wiki Description

Position along the Y axis.

floatafZ

CK Wiki Description

Position along the Z axis.

floatafXAngle

CK Wiki Description

Destination X Angle.

floatafYAngle

CK Wiki Description

Destination Y Angle (rarely used).

floatafZAngle

CK Wiki Description

Destination Z Angle.

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 0,0,0 with an angle of 90,90,90 with a low spline magnitude and speed
Bird.SplineTranslateTo(0.0, 0.0, 0.0, 90.0, 90.0, 90.0, 1.0, 1.0)
; Translate the bird ref to 0,0,0 with an angle of 90,90,90 with a low spline magnitude and speed, and low rotation speed
Bird.SplineTranslateTo(0.0, 0.0, 0.0, 90.0, 90.0, 90.0, 1.0, 1.0, 10)

Auto-Generated Example

float myFloat__afX
float myFloat__afY
float myFloat__afZ
float myFloat__afXAngle
float myFloat__afYAngle
float myFloat__afZAngle
float myFloat__afTangentMagnitude
float myFloat__afSpeed
float myFloat__afMaxRotationSpeed

myObjectReference__toCallFunctionOn.SplineTranslateTo(myFloat__afX, myFloat__afY, myFloat__afZ, myFloat__afXAngle, myFloat__afYAngle, myFloat__afZAngle, 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.