Description
Wiki Description
Makes the object translate to the passed reference (matching position and rotation) at the given speed.
Documentation Comment
Makes the reference translate to the target ref position/orient at the given speed
Caveats
Parameters
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") - Negative values can cause unpredictable rotation.
- Default:0.0
Examples
; Translate the bird ref to the rock with a low speed
Bird.TranslateToRef(Rock, 1.0); Translate the bird ref to the rock with a low speed, and low rotation speed
Bird.TranslateToRef(Rock, 1.0, 10.0)Auto-Generated Example
ObjectReference myObjectReference__arTarget
float myFloat__afSpeed
float myFloat__afMaxRotationSpeed
myObjectReference__toCallFunctionOn.TranslateToRef(myObjectReference__arTarget, myFloat__afSpeed, myFloat__afMaxRotationSpeed)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
