TranslateTo - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Correct Parameter Names (afAngle[X/Y/Z] --> af[X/Y/Z]Angle)
(added a new discovery (flagging as full LOD) that causes the function to fail.)
m (Correct Parameter Names (afAngle[X/Y/Z] --> af[X/Y/Z]Angle))
Line 7: Line 7:
== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Function TranslateTo(float afX, float afY, float afZ, float afAngleX, float afAngleY, float afAngleZ, float afSpeed, \
Function TranslateTo(float afX, float afY, float afZ, float afXAngle, float afYAngle, float afZAngle, float afSpeed, \
   float afMaxRotationSpeed = 0.0) native
   float afMaxRotationSpeed = 0.0) native
</source>
</source>
Line 15: Line 15:
*afY: Position along the Y axis (Absolute world coordinates).
*afY: Position along the Y axis (Absolute world coordinates).
*afZ: Position along the Z axis (Absolute world coordinates).
*afZ: Position along the Z axis (Absolute world coordinates).
*afAngleX: Destination X Angle (Absolute world rotation).
*afXAngle: Destination X Angle (Absolute world rotation).
*afAngleY: Destination Y Angle (Absolute world rotation) (rarely used).
*afYAngle: Destination Y Angle (Absolute world rotation) (rarely used).
*afAngleZ: Destination Z Angle (Absolute world rotation).
*afZAngle: Destination Z Angle (Absolute world rotation).
*afSpeed: Movement Speed.
*afSpeed: Movement Speed.
*afMaxRotationSpeed: Maximum rotation Speed (default is 0 to mean "don't clamp the rotation speed") - Negative values cause unpredictable rotation.
*afMaxRotationSpeed: Maximum rotation Speed (default is 0 to mean "don't clamp the rotation speed") - Negative values cause unpredictable rotation.
171

edits

Navigation menu