SplineTranslateToRefNode - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Convert source tags to syntaxhighlight
m (Grammar)
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function SplineTranslateToRefNode(ObjectReference arTarget, string arNodeName, float afTangentMagnitude, float afSpeed, \
Function SplineTranslateToRefNode(ObjectReference arTarget, string arNodeName, float afTangentMagnitude, float afSpeed, \
   float afMaxRotationSpeed = 0.0) native
   float afMaxRotationSpeed = 0.0) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 23: Line 23:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Translate the bird ref to the rock landing node with a low spline magnitude and speed
; Translate the bird ref to the rock landing node with a low spline magnitude and speed
Bird.SplineTranslateToRefNode(Rock, "landing", 1.0, 1.0)
Bird.SplineTranslateToRefNode(Rock, "landing", 1.0, 1.0)
</source>
</syntaxhighlight>
<br>
<br>
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Translate the bird ref to the rock landing node with a low spline magnitude and speed, and low rotation speed
; Translate the bird ref to the rock landing node with a low spline magnitude and speed, and low rotation speed
Bird.SplineTranslateToRefNode(Rock, "landing", 1.0, 1.0, 10)
Bird.SplineTranslateToRefNode(Rock, "landing", 1.0, 1.0, 10)
</source>
</syntaxhighlight>


== Tips ==
== Tips ==

Navigation menu