# Pawn Sensor doesn't work on spawned actor

**URL:** <https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000>\
**Category:** AI\
**Tags:** unreal-engine, pawn, question\
**Created:** [March 5, 2017, 1:05pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000 "2017-03-05T13:05:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lord\_Caine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lord\_Caine](https://forums.unrealengine.com/u/Lord_Caine)\
**Post date:** [March 5, 2017, 1:05pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/1 "2017-03-05T13:05:05Z")

</div>

Hi There,

I have a blueprint with a pawn sensor in it. When I manually place it on my level it works fine. When I spawn the the same blueprint the pawn sensor never seems to activate. I put breakpoints on begin play and when the actor is spawned it does got to begin play, but onseepawn never gets activated.

I place one actor and spawn one right next to it and the manually placed one works fine while the spawned one doesn’t. I don’t see anywhere where I can activate the pawn sensor in the blue print.

Can someone point me in the right direction?

Thanks,

Arthur

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_20ce32e9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_20ce32e9](https://forums.unrealengine.com/u/anonymous_user_20ce32e9)\
**Post date:** [March 6, 2017, 11:52am UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/2 "2017-03-06T11:52:43Z")

</div>

I was having the exact same problem and this is how I solved it.  
There is a spawn AI from class node as well, let me show you how I have used it in my spawner actor;

 ![128832-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/6/d76bf9e12eeab21e8bad261c22287e8e8253d1d6.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_20ce32e9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_20ce32e9](https://forums.unrealengine.com/u/anonymous_user_20ce32e9)\
**Post date:** [March 6, 2017, 1:08pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/3 "2017-03-06T13:08:34Z")

</div>

I am also very interested in an answer to this.

---

<div class="post-metadata">

**Author:** ![Lord\_Caine](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lord\_Caine](https://forums.unrealengine.com/u/Lord_Caine)\
**Post date:** [March 6, 2017, 1:23pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/4 "2017-03-06T13:23:37Z")

</div>

Hi Sweet Mate,

Thanks for that I can’t wait to try it. Will that work with a Pawn sensor also It looks like you may have been using some of the other AI tools which I haven’t played with yet.

My actor is basically a dumb weapon emplacement so I just used a pawn sensor.

Regards,

Arthur

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [March 6, 2017, 2:35pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/5 "2017-03-06T14:35:14Z")

</div>

Hello,

In your AI Character Blueprint’s Class Defaults, try setting Auto Possess AI to Placed in World or Spawned instead of just Placed in World. I’m not sure if that’s necessary in this case if you’re not doing any work with an AI Controller, but I think it’s worth a shot.

Let me know if that helps. If not we can continue to investigate and find another solution.

Have a great day

---

<div class="post-metadata">

**Author:** ![Yvasquez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yvasquez](https://forums.unrealengine.com/u/Yvasquez)\
**Post date:** [November 10, 2017, 12:52am UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/6 "2017-11-10T00:52:45Z")

</div>

Hi, I’m new to this and I have the same problem, which solution worked for you, the Newest probe but it still does not work and the other one does not really understand the process

---

<div class="post-metadata">

**Author:** ![Yvasquez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yvasquez](https://forums.unrealengine.com/u/Yvasquez)\
**Post date:** [November 10, 2017, 3:17pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/7 "2017-11-10T15:17:14Z")

</div>

Hello Sean L and tried what you say but it still does not work

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [November 10, 2017, 3:20pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/8 "2017-11-10T15:20:30Z")

</div>

If you believe that this is a bug, please provide me with a detailed list of repro steps that I can use to create the issue on my end, otherwise it’s tough to tell exactly what you’re doing that could be causing this issue.

Thanks

---

<div class="post-metadata">

**Author:** ![Yvasquez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yvasquez](https://forums.unrealengine.com/u/Yvasquez)\
**Post date:** [November 10, 2017, 3:38pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/9 "2017-11-10T15:38:31Z")

</div>

Hi, thanks for the help.  
The steps I’m taking are these:

- I have my bot that when it detects the player it starts to follow, this works fine only if I drag the bot on the scene manually.

 ![219767-1p.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/e/fde74d36004b3a09e99d654e551ad1e9f6f2b9c3.png)

- At the moment I want my bot to be spammed, so I do the following:

 ![219768-2p.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/1/541432c9817526bf791d2a2d7a5a880b49d7bcc5.png)

This makes my bot generated correctly, but it does not follow the player or do anything. Finally in my Bot I went to the section that you mentioned and I left it in the following way.

![219769-3p.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/e/42e329b45d6be055a50a63d1eafdb9c6a61d4a33.png)

it still does not work ☹  
Again thank you very much for your help.  
regards

---

<div class="post-metadata">

**Author:** ![Yvasquez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yvasquez](https://forums.unrealengine.com/u/Yvasquez)\
**Post date:** [November 17, 2017, 4:56am UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/10 "2017-11-17T04:56:05Z")

</div>

I really need help with this.

---

<div class="post-metadata">

**Author:** ![SweetMate1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SweetMate1](https://forums.unrealengine.com/u/SweetMate1)\
**Post date:** [November 17, 2017, 5:08am UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/11 "2017-11-17T05:08:20Z")

</div>

Try using one of these nodes that you can get access to by getting the AI controller.

 ![220484-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/9/6591d651e6096ee67dcf3295b0a1e8f21148daa6.png)

---

<div class="post-metadata">

**Author:** ![SweetMate1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SweetMate1](https://forums.unrealengine.com/u/SweetMate1)\
**Post date:** [November 17, 2017, 5:23am UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/12 "2017-11-17T05:23:34Z")

</div>

It also may be worthwhile to take a look into the perception component in the AI controller to handle stuff like this.

 ![220485-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/c/f3c3bc5dcc8d10d0c7d16aa8d763a07b6c15516c.png)

---

<div class="post-metadata">

**Author:** ![BlackGolem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlackGolem](https://forums.unrealengine.com/u/BlackGolem)\
**Post date:** [February 12, 2018, 4:26pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/13 "2018-02-12T16:26:09Z")

</div>

I had the same problem; Actor placed in world worked fine but spawned actor wasn’t.  
Solution: Change “Auto possess AI” from "Placed in world’ to “Placed in world or spawned”.  
Works great now.

 ![230390-screen-shot-2018-02-12-at-10.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/7/537f1203cf9a73916f6a122deaa3645b41679e0c.jpeg)

---

<div class="post-metadata">

**Author:** ![Clones1201](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Clones1201](https://forums.unrealengine.com/u/Clones1201)\
**Post date:** [February 13, 2019, 12:56pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/14 "2019-02-13T12:56:34Z")

</div>

I running into a similar problem when worked with BP\_ThirdPersonShooterAI in ThirdPersonKit.  
TPKit using PawnSensingComponent in a BP\_Sensing\_Pawn which is used as a ChildActorComponent in BP\_ThirdPersonShooterAI. This is causing the AI not working properly when spawned because the BP\_Sensing\_Pawn as sub-class of APawn will try to spawn its default AIController when Initialized which is happened within the construction scripts of the ChildActorComponent and it’s forbidden as mentioned [here](https://forums.unrealengine.com/unreal-engine/feedback-for-epic/20835-request-spawning-actors-in-blueprint-construction-script)

the solution is to spawn an AIController manually and posses the BP\_Sensing\_Pawn, then all works well.

---

<div class="post-metadata">

**Author:** ![Malevo\_Ferreyra](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Malevo\_Ferreyra](https://forums.unrealengine.com/u/Malevo_Ferreyra)\
**Post date:** [March 13, 2019, 11:03pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/15 "2019-03-13T23:03:58Z")

</div>

Thanks friend! ! all afternoon investigating. This resolved everything! ! ! ! ! so simple…

---

<div class="post-metadata">

**Author:** ![dekav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dekav](https://forums.unrealengine.com/u/dekav)\
**Post date:** [April 21, 2021, 6:21pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/16 "2021-04-21T18:21:25Z")

</div>

Such an easy fix. You saved my life! Thanks

---

<div class="post-metadata">

**Author:** ![Serasaw](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Serasaw](https://forums.unrealengine.com/u/Serasaw)\
**Post date:** [November 20, 2021, 4:17am UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/17 "2021-11-20T04:17:09Z")

</div>

There is so many things broken in UE4, Pawn sense requires a work around for its limited usability, Clipping object overlap causes overlap event to fire multiple times, custom object channel can’t fire overlap events… Also custom Trace channel breaks after some time working…

In Unreal eyes, how exactly are you supposed to build AI with f\*\*\* eyes if everything is broken? Do i need to roll back an update?

---

<div class="post-metadata">

**Author:** ![GOZARS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GOZARS](https://forums.unrealengine.com/u/GOZARS)\
**Post date:** [November 16, 2022, 1:51am UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/18 "2022-11-16T01:51:28Z")

</div>

> [@Clones1201](#):
>
> the solution is to spawn an AIController manually and posses the BP\_Sensing\_Pawn, then all works well

HI Clones1201,  
How does one do this exactly?

---

<div class="post-metadata">

**Author:** ![purple\_work](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/purple_work/32/619978_2.png) [@purple\_work](https://forums.unrealengine.com/u/purple_work)\
**Post date:** [January 25, 2023, 5:06pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/19 "2023-01-25T17:06:00Z")

</div>

thanks dude, this is the solution.

---

<div class="post-metadata">

**Author:** ![pierr32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pierr32](https://forums.unrealengine.com/u/pierr32)\
**Post date:** [March 15, 2024, 11:27pm UTC](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000/20 "2024-03-15T23:27:12Z")

</div>

just change this and all work fine 🙂

![spawn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/a/cea58989cd4b0d7fba390627d19aa58373871f56.png)

[Next page](https://forums.unrealengine.com/t/pawn-sensor-doesnt-work-on-spawned-actor/387000.md?page=2)
