SetSubGraphFloatVariable - Actor: Difference between revisions
Jump to navigation
Jump to search
DavidJCobb (talk | contribs) (The removed content referred to animation variables on actors' top-level graphs, not any specific sub-graphs.) |
DavidJCobb (talk | contribs) No edit summary |
||
| Line 22: | Line 22: | ||
Jake.SetSubGraphFloatVariable("fBlendTime", 1.0) |
Jake.SetSubGraphFloatVariable("fBlendTime", 1.0) |
||
</source> |
</source> |
||
== Notes == |
|||
* Examination of vanilla meshes and scripts suggests that [[ArmorAddon|ArmorAddon]]s and [[Art Object|Art Object]]s can have behavior graphs, and that these are treated as "sub-graphs" for the actors the meshes are attached to. This script function is used to modify the values of animation variables on these sub-graphs. |
|||
== See Also == |
== See Also == |
||
Revision as of 13:57, 26 July 2026
Member of: Actor Script (Requires 1.6)
Set a variable on all of an actor's sub graphs.
Syntax
Function SetSubGraphFloatVariable(string asVariableName, float afValue) nativeParameters
- asVariableName: The variable name of the variable you'd like to set on all actor's sub graphs.
- afValue: The value you'd like to set for the above variable.
Return Value
None.
Examples
; Set Jake's skin's blend time to 1.0 seconds.
Jake.SetSubGraphFloatVariable("fBlendTime", 1.0)Notes
- Examination of vanilla meshes and scripts suggests that ArmorAddons and Art Objects can have behavior graphs, and that these are treated as "sub-graphs" for the actors the meshes are attached to. This script function is used to modify the values of animation variables on these sub-graphs.