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

Description

Wiki Description

Makes the object translate to the passed reference (matching position and rotation) at the given speed using a spline.

Documentation Comment

Makes the reference translate to the target ref position/orient on a spline at the given speed


Caveats


Parameters

ObjectReferencearTarget

CK Wiki Description

The target to match position and rotation to

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 with a low spline magnitude and speed
Bird.SplineTranslateToRef(Rock, 1.0, 1.0)
; Translate the bird ref to the rock with a low spline magnitude and speed, and low rotation speed
Bird.SplineTranslateToRef(Rock, 1.0, 1.0, 10)

Auto-Generated Example

ObjectReference myObjectReference__arTarget
float myFloat__afTangentMagnitude
float myFloat__afSpeed
float myFloat__afMaxRotationSpeed

myObjectReference__toCallFunctionOn.SplineTranslateToRef(myObjectReference__arTarget, 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.