It’s possible but the best way is to use a transition condition or an event.
https://logicdriver.recursoft.net/do…ed-transitions
You could add an event delegate to your actor, then bind to it on the transition and fire it from your actor to switch the states. That would make it really clean and efficient.
https://i.imgur.com/Ng58ggD.png
Back to your original question, there’s a function available for state instances SwitchToLinkedState which does what you want, but it was meant to be called from either a state class or within a state node.
If you really want to do it from an actor component, you could do something like this. It’s kinda messy because you can’t directly search for a state by name, you would have to check the active state instance.
This is from a state node, if it’s possible to place the logic here, or from within a state class, it will work much better.