Skip to content

Set FSM Variable

Set the value of a variable in another FSM.

Tip

When possible, use type-specific versions of this action for better performance and clearer intent.
For example, Set FSM Float, Set FSM String, etc.

Parameters

Parameter Description
FSM Component The FSM to set the variable in.
Variable Name The name of the variable to set.
Use the browse button (...) to pick a variable from the target FSM.
(The browse button is only available when the FSM is assigned directly, not via a variable.)
Variable Type The type of the variable.
Only shown in the generic Set FSM Variable action. Type-specific variants do not have this field.
Set Value The value to assign to the variable in the target FSM.

NOTE: The variable types should match, otherwise you will get an error at runtime.

Variable Linking

When the FSM Component is assigned directly at edit time (not using a variable),
the action can link to a specific variable in that FSM.

If that variable is renamed in the target FSM, the action’s reference is updated automatically, so the Variable Name field stays in sync.

When the FSM Component is not known at edit time (it’s set using a variable), the action cannot create a strong link to a specific FSM. In this case, the Variable Name is treated as a plain string, and you’ll need to update it manually if the variable name changes.