Aborting state tree branches

There are many valid ways to approach state machine code. I did a write up on our system in a post here. Might give you some ideas:

Looking for suggestions on a state machine system to organize player character code - Programming & Scripting / C++ - Epic Developer Community Forums (unrealengine.com)