1,482
edits
m (Correct Parameter Names (afAngle[X/Y/Z] --> af[X/Y/Z]Angle)) |
m (Convert source tags to syntaxhighlight) |
||
| Line 6: | Line 6: | ||
== Syntax == | == Syntax == | ||
< | <syntaxhighlight lang="papyrus"> | ||
Function TranslateTo(float afX, float afY, float afZ, float afXAngle, float afYAngle, float afZAngle, 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 | ||
</ | </syntaxhighlight> | ||
== Parameters == | == Parameters == | ||
| Line 25: | Line 25: | ||
== Examples == | == Examples == | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Translate the bird slowly to 0,0,0 with a rotation of 90,90,90 | ; 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) | Bird.TranslateTo(0.0, 0.0, 0.0, 90.0, 90.0, 90.0, 1.0) | ||
</ | </syntaxhighlight> | ||
<br> | <br> | ||
< | <syntaxhighlight lang="papyrus"> | ||
; Translate the bird slowly to 0,0,0 with a rotation of 90,90,90 with a max rotation speed of 10 | ; 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) | Bird.TranslateTo(0.0, 0.0, 0.0, 90.0, 90.0, 90.0, 1.0, 10.0) | ||
</ | </syntaxhighlight> | ||
== Tips == | == Tips == | ||