# Problem with spawn AI from class (BP)

**URL:** <https://forums.unrealengine.com/t/problem-with-spawn-ai-from-class-bp/349208>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [March 1, 2016, 3:48pm UTC](https://forums.unrealengine.com/t/problem-with-spawn-ai-from-class-bp/349208 "2016-03-01T15:48:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MeGaJ0eY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MeGaJ0eY](https://forums.unrealengine.com/u/MeGaJ0eY)\
**Post date:** [March 1, 2016, 3:48pm UTC](https://forums.unrealengine.com/t/problem-with-spawn-ai-from-class-bp/349208/1 "2016-03-01T15:48:55Z")

</div>

I’m trying to spawn a pawn using my player character but it’s not working, I’ve been following these tutorials:

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

and am now on tutorial 3 but the sentry turret doesn’t spawn when the fire button is pressed, here are the blueprints:

 ![80604-screenshot036.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/d/cdd1e0bb56980aa9cf289d5102aab3e967ec9d1b.jpeg)

there’s nothing wrong with the input itself and the branch is set to true so I think the problem might be with the spawn function itself, or that the tutorials are out of date.

Any screenshots of a potential fix would be most welcome thanks!

---

<div class="post-metadata">

**Author:** ![Ghar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghar](https://forums.unrealengine.com/u/Ghar)\
**Post date:** [March 1, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/problem-with-spawn-ai-from-class-bp/349208/2 "2016-03-01T18:39:44Z")

</div>

Also might want to look at the World Outliner window and see if it spawned in another position. Maybe it’s falling down the world or something.  
Can you set a breakpoint on the node to verify that the node is being executed?

---

<div class="post-metadata">

**Author:** ![MeGaJ0eY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MeGaJ0eY](https://forums.unrealengine.com/u/MeGaJ0eY)\
**Post date:** [March 1, 2016, 10:04pm UTC](https://forums.unrealengine.com/t/problem-with-spawn-ai-from-class-bp/349208/3 "2016-03-01T22:04:06Z")

</div>

sorry I’m still new to UE, how do I set a breakpoint? I’m pretty sure it’s appearing in the right place because I have a line trace going to its location.

---

<div class="post-metadata">

**Author:** ![Ghar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ghar](https://forums.unrealengine.com/u/Ghar)\
**Post date:** [March 1, 2016, 10:07pm UTC](https://forums.unrealengine.com/t/problem-with-spawn-ai-from-class-bp/349208/4 "2016-03-01T22:07:37Z")

</div>

right click SpawnAIFromClass node and select “add breakpoin” from the dropdown. Then play the game. The game should stop right before executing that node.

---

<div class="post-metadata">

**Author:** ![MeGaJ0eY](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MeGaJ0eY](https://forums.unrealengine.com/u/MeGaJ0eY)\
**Post date:** [March 8, 2016, 11:38am UTC](https://forums.unrealengine.com/t/problem-with-spawn-ai-from-class-bp/349208/5 "2016-03-08T11:38:00Z")

</div>

ok sorry its late (lost my internet) I added a breakpoint to the node and it is being executed but nothing happens I stepped out into the editor and couldn’t find any references to the turret in the hierarchy.

the turret actual is a pawn so that should work. do I need to attach the turrets behaviour tree? the location and rotation should be fine. what does the no collision fail bool do?
