# State machines in UE4

**URL:** <https://forums.unrealengine.com/t/state-machines-in-ue4/2525>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [April 13, 2014, 1:06pm UTC](https://forums.unrealengine.com/t/state-machines-in-ue4/2525 "2014-04-13T13:06:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maikklein](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maikklein/32/918666_2.png) [@maikklein](https://forums.unrealengine.com/u/maikklein)\
**Post date:** [April 13, 2014, 1:06pm UTC](https://forums.unrealengine.com/t/state-machines-in-ue4/2525/1 "2014-04-13T13:06:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Onoa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Onoa](https://forums.unrealengine.com/u/Onoa)\
**Post date:** [April 13, 2014, 4:19pm UTC](https://forums.unrealengine.com/t/state-machines-in-ue4/2525/2 "2014-04-13T16:19:51Z")

</div>

Hi,

Have a look at this:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

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](http://gameprogrammingpatterns.com/state.html)
