Description
Wiki Description
Makes the object translate to the passed in position and orientation at the given speed.
Documentation Comment
Makes the reference translate to the given position/orientation
Note: Rotation speed is entirely dependent on the length of the path and the movement speed
that is, the rotation will happen such that the reference reaches the goal orientation at the end
of the translation.
Parameters
floatafX
CK Wiki Description
Position along the X axis (Absolute world coordinates).
floatafY
CK Wiki Description
Position along the Y axis (Absolute world coordinates).
floatafZ
CK Wiki Description
Position along the Z axis (Absolute world coordinates).
floatafXAngle
CK Wiki Description
Destination X Angle (Absolute world rotation).
floatafYAngle
CK Wiki Description
Destination Y Angle (Absolute world rotation) (rarely used).
floatafZAngle
CK Wiki Description
Destination Z Angle (Absolute world rotation).
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
Maximum rotation Speed (default is 0 to mean "don't clamp the rotation speed") - Negative values cause unpredictable rotation.
Examples
; Translate the bird slowly to 0,0,0 with a rotation of 90,90,90
Bird.TranslateTo(0.0, 0.0, 0.0, 90.0, 90.0, 90.0, 1.0); Translate the bird slowly to 0,0,0 with a rotation of 90,90,90 with a max rotation speed of 10
Bird.TranslateTo(0.0, 0.0, 0.0, 90.0, 90.0, 90.0, 1.0, 10.0)Auto-Generated Example
float myFloat__afX
float myFloat__afY
float myFloat__afZ
float myFloat__afXAngle
float myFloat__afYAngle
float myFloat__afZAngle
float myFloat__afSpeed
float myFloat__afMaxRotationSpeed
myObjectReference__toCallFunctionOn.TranslateTo(myFloat__afX, myFloat__afY, myFloat__afZ, myFloat__afXAngle, myFloat__afYAngle, myFloat__afZAngle, myFloat__afSpeed, myFloat__afMaxRotationSpeed)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
