Adding new states to finite state machine during game runtime.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lukshuzine

Hello everyone!

I am wondering if there’s a way to add (via code) new pre-coded states to player’s FSM during game-play when a certain signal is emitted, for example.

For simplicity, say I want to add the Run state to the FSM when I take a game boost. This state is conventionally added to FSM from the beginning and is design to work properly like any other state. But what I want to do is to somehow add this new properly working state to my existing states so that I’m able to run now.

Thanks for consideration.

Regards

A Newbie :slight_smile: