Background for Starfield
Member of the ObjectReference script
voidfunctionSetAnimationVariableFloat(stringarVariableName, floatafNewValue)Native

Description

Wiki Description

Sets the value of a variable on the reference's animation graph - Float version.

Documentation Comment

Set a variable on the reference's animation graph (if applicable). Float version.


Parameters

  1. stringarVariableName

    CK Wiki Description

    The name of the variable to read from the graph

  2. floatafNewValue

    CK Wiki Description

    The new variable value


Examples

; Force actor to move at 100 units/s
SetAnimationVariableFloat("Speed", 100.0)

Auto-Generated Example

string myString__arVariableName
float myFloat__afNewValue

myObjectReference__toCallFunctionOn.SetAnimationVariableFloat(myString__arVariableName, myFloat__afNewValue)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.