How would you create a state machine in UE4? Is there already helper class for this? If not would you make your state machine part of UObject or would you create your own C++ class?
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: