# C++ Finite state machine

**URL:** <https://forums.unrealengine.com/t/c-finite-state-machine/2857>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [April 19, 2014, 1:55am UTC](https://forums.unrealengine.com/t/c-finite-state-machine/2857 "2014-04-19T01:55:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RoboticHuman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RoboticHuman](https://forums.unrealengine.com/u/RoboticHuman)\
**Post date:** [April 19, 2014, 1:55am UTC](https://forums.unrealengine.com/t/c-finite-state-machine/2857/1 "2014-04-19T01:55:24Z")

</div>

Hey guys,

I was wondering if the good old state programming system from UnrealScript still exists in UE4 or should i implement mine from scratch, if anybody knows the class to inherit from or something, i would be very grateful.

Another thing is, if i’m adding new classes to a project(cpps and headers) do i have to recompile the whole engine again?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 19, 2014, 3:08am UTC](https://forums.unrealengine.com/t/c-finite-state-machine/2857/2 "2014-04-19T03:08:08Z")

</div>

Here’s my wiki on how to set VS up so you only compile your project and not the entire engine 🙂

> **[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...

Rama

PS: no you have to implement the concept of states in your own way now.

---

<div class="post-metadata">

**Author:** ![Dig\_Squid](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dig_squid/32/1145423_2.png) [@Dig\_Squid](https://forums.unrealengine.com/u/Dig_Squid)\
**Post date:** [April 19, 2014, 5:42am UTC](https://forums.unrealengine.com/t/c-finite-state-machine/2857/3 "2014-04-19T05:42:33Z")

</div>

States do not exist any more as a language feature in UE4. You will need to implement them yourself using an enum/names etc.

You should only have to compile your project when you modify it. That is a big reason to keep things modular!
