State machines in UE4

Hi,

Have a look at this:

The example in this Wiki entry can be used to implement a basic state machine in C++.

More info on the subject:

http://gameprogrammingpatterns.com/state.html