# How to change AI behaviour?

**URL:** <https://forums.unrealengine.com/t/how-to-change-ai-behaviour/465723>\
**Category:** AI\
**Tags:** ai-navigation, ai-controller, unreal-engine, question\
**Created:** [May 24, 2020, 11:28am UTC](https://forums.unrealengine.com/t/how-to-change-ai-behaviour/465723 "2020-05-24T11:28:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cypoe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cypoe](https://forums.unrealengine.com/u/Cypoe)\
**Post date:** [May 24, 2020, 11:28am UTC](https://forums.unrealengine.com/t/how-to-change-ai-behaviour/465723/1 "2020-05-24T11:28:34Z")

</div>

Hello,

i hope I get some light on this, because I don’t find any answers.  
Alsoy sry if this is a trivial question, I’m very new to AI.

I want boids, that smash into the ground and change to humanoids when the player gets close. Which than has a completetly seperate behaviour for fighting, etc. Basically, birds that change into humans.

How do I go about implementing this?  
Is it just as simple as adding a new State with a condition, when the boid behaviour itself is composed of multiple states?

---

<div class="post-metadata">

**Author:** ![JanakPRB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JanakPRB](https://forums.unrealengine.com/u/JanakPRB)\
**Post date:** [February 21, 2022, 12:43am UTC](https://forums.unrealengine.com/t/how-to-change-ai-behaviour/465723/2 "2022-02-21T00:43:48Z")

</div>

If you are using a behaviour tree then it is easy just use an enum as a blackboard key and based on the value of the enum run a different branch of the behavior tree
