# Accessed none error with AI Spawn, Behavior tree

**URL:** <https://forums.unrealengine.com/t/accessed-none-error-with-ai-spawn-behavior-tree/345997>\
**Category:** AI\
**Tags:** Behavior-Tree, spawning, unreal-engine, message-log, question, Blueprint\
**Created:** [February 1, 2016, 2:23am UTC](https://forums.unrealengine.com/t/accessed-none-error-with-ai-spawn-behavior-tree/345997 "2016-02-01T02:23:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZenRigpa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZenRigpa](https://forums.unrealengine.com/u/ZenRigpa)\
**Post date:** [February 1, 2016, 2:23am UTC](https://forums.unrealengine.com/t/accessed-none-error-with-ai-spawn-behavior-tree/345997/1 "2016-02-01T02:23:07Z")

</div>

Everything is working fine but i get this accessed none error in my custom AI\_controller BP

 ![76762-error+message.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/c/37c8d8e81b1e4942ac52bb2939ab6730360ccf11.png)

 ![76763-ai_controller.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/9/4e97788a2648cdc059ba3446131373a9e4ee7119.png)

However, if i place the enemies manually on the level, i won’t get this error.  
But if the enemies are getting spawn with a trigger during runtime then the error appears.  
Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![ZenRigpa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZenRigpa](https://forums.unrealengine.com/u/ZenRigpa)\
**Post date:** [February 1, 2016, 2:39pm UTC](https://forums.unrealengine.com/t/accessed-none-error-with-ai-spawn-behavior-tree/345997/2 "2016-02-01T14:39:36Z")

</div>

A simple delay after the EventBeginPlay solved it. 🙂  
The BP looked for the location before the first enemy was even spawned. So it returned accessed none.

---

<div class="post-metadata">

**Author:** ![ZenRigpa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZenRigpa](https://forums.unrealengine.com/u/ZenRigpa)\
**Post date:** [February 1, 2016, 2:42pm UTC](https://forums.unrealengine.com/t/accessed-none-error-with-ai-spawn-behavior-tree/345997/3 "2016-02-01T14:42:06Z")

</div>

A simple delay after the Event Begin Play solved the Problem.  
The Blueprint looked after a location before the first enemy was spawned. So it returned Accessed none.
