SetAnimationVariableInt - ObjectReference: Difference between revisions

m
Convert source tags to syntaxhighlight
m (→‎Notes: Updated animation variable list link and removed broken old beth forums link.)
m (Convert source tags to syntaxhighlight)
 
Line 6: Line 6:


== Syntax ==
== Syntax ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
Function SetAnimationVariableInt(string asVariableName, int aiNewValue) native
Function SetAnimationVariableInt(string asVariableName, int aiNewValue) native
</source>
</syntaxhighlight>


== Parameters ==
== Parameters ==
Line 17: Line 17:


== Examples ==
== Examples ==
<source lang="papyrus">
<syntaxhighlight lang="papyrus">
; Force actor to use melee weapon
; Force actor to use melee weapon
SetAnimationVariableInt("iRightHandType", 1)
SetAnimationVariableInt("iRightHandType", 1)
</source>
</syntaxhighlight>


== Notes ==
== Notes ==