Resource:Creation Kit > SetAnimationVariableInt - ObjectReference
Member of: ObjectReference Script
Sets the value of a variable on the reference's animation graph - Int version.
Syntax
Function SetAnimationVariableInt(string asVariableName, int aiNewValue) native
Parameters
- asVariableName: The name of the variable to read from the graph
- aiNewValue: The new variable value
Return Value
None.
Examples
; Force actor to use melee weapon
SetAnimationVariableInt("iRightHandType", 1)
See Also
- ObjectReference Script
- Resource:Creation Kit/GetAnimationVariableBool - ObjectReference
- Resource:Creation Kit/GetAnimationVariableInt - ObjectReference
- Resource:Creation Kit/GetAnimationVariableFloat - ObjectReference
- Resource:Creation Kit/SetAnimationVariableBool - ObjectReference
- Resource:Creation Kit/SetAnimationVariableFloat - ObjectReference
