State machines are what game engines use to control what animations are being played and when and how they blend and transition. It can be used to setup conditions and flow for animations in your game. Below is a link to using one in Unreal.
Blend spaces and blue prints are also used in state machines. More info about them here.
An example of blue print use here: