# Does each AI controller have its own instance of a brain component?

**URL:** <https://forums.unrealengine.com/t/does-each-ai-controller-have-its-own-instance-of-a-brain-component/438925>\
**Category:** AI\
**Tags:** unreal-engine, UE4, CPP, question\
**Created:** [December 5, 2018, 4:10pm UTC](https://forums.unrealengine.com/t/does-each-ai-controller-have-its-own-instance-of-a-brain-component/438925 "2018-12-05T16:10:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LDOGLONDON](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LDOGLONDON](https://forums.unrealengine.com/u/LDOGLONDON)\
**Post date:** [December 5, 2018, 4:10pm UTC](https://forums.unrealengine.com/t/does-each-ai-controller-have-its-own-instance-of-a-brain-component/438925/1 "2018-12-05T16:10:01Z")

</div>

Hi all,

I’m working with the FAIMessage and FAIMessageObserver systems within the AI module and I’m trying to figure out how they can be utilized. I got the messaging to work within an Actor Component that I made. But when I register an observer and send a message, the messages are only being received from the component sending them. I know the brain component handles the messaging within the AI module. I thought that all AI shared a brain component, but now I’m thinking that all the AI have their own instance of a brain component. Is this correct? Is the AI messaging system meant to let AI talk to each other or let a specific AI’s components more easily talk among themselves? Am I using the the AI messaging system correctly or did I mess up?

This is all being done in C++, any help/insight would be appreciated!

---

<div class="post-metadata">

**Author:** ![LDOGLONDON](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LDOGLONDON](https://forums.unrealengine.com/u/LDOGLONDON)\
**Post date:** [January 24, 2019, 11:13pm UTC](https://forums.unrealengine.com/t/does-each-ai-controller-have-its-own-instance-of-a-brain-component/438925/2 "2019-01-24T23:13:15Z")

</div>

Yeah, I’m pretty sure. The BrainComponent is the base class to the behavior tree’s. And I believe that each AI gets its own instance of a behavior tree. If I’m wrong, please feel free to correct me
