# OnComponentOverlap not working?

**URL:** <https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291>\
**Category:** World Creation\
**Tags:** not-starting, overlap, unreal-engine, enemy, component, Physics, Collision, question\
**Created:** [May 12, 2021, 7:18pm UTC](https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291 "2021-05-12T19:18:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![GamerAwesome949](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamerAwesome949](https://forums.unrealengine.com/u/GamerAwesome949)\
**Post date:** [May 12, 2021, 7:18pm UTC](https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291/1 "2021-05-12T19:18:11Z")

</div>

So, I have a BossEnemy, and I had it set so that OnComponentBeginOverlap (head), it would start a damage sequence. However, it didn’t work, so I did a little bit of debug, and I got to where even just a simple PrintString off of the node doesnt do anything. I have Generates Overlap Events on, and I have the collision preset set to OverlapAll. What am I doing wrong?

 ![338656-screenshot-37.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/b/d1b5393decef946ec6f59d5e2540a57836c389a2.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 13, 2021, 7:21am UTC](https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291/2 "2021-05-13T07:21:27Z")

</div>

Could you show the collision settings of the entities that are supposed to collide?

> I have the collision preset set to  
> OverlapAll

On both? Or?

---

<div class="post-metadata">

**Author:** ![GamerAwesome949](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamerAwesome949](https://forums.unrealengine.com/u/GamerAwesome949)\
**Post date:** [May 14, 2021, 12:53am UTC](https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291/3 "2021-05-14T00:53:02Z")

</div>

Would it break anything to change the collision of FirstPersonProjectile to OverlapAll? Or do I need to approach this another way?

 ![338782-screenshot-39.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/a/aea432c7c98d86698d3afe75ac30fce7398e1e11.jpeg)

---

<div class="post-metadata">

**Author:** ![GamerAwesome949](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamerAwesome949](https://forums.unrealengine.com/u/GamerAwesome949)\
**Post date:** [May 14, 2021, 7:52pm UTC](https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291/4 "2021-05-14T19:52:39Z")

</div>

Update: Turning on OverlapAll on the projectile as well did nothing.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 14, 2021, 9:50pm UTC](https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291/5 "2021-05-14T21:50:49Z")

</div>

Not sure whether I understood the scenario right, could you clarify a couple of things:

The player (or something) fires a projectile, right? And then:

- the player detects what the projectile hit
- the projectile detects what it hit
- the monster detects what hit its static mesh head
- the static mesh head detects that the projectile hit it

Which scenario are you after? All of them? All are doable.

---

<div class="post-metadata">

**Author:** ![GamerAwesome949](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GamerAwesome949](https://forums.unrealengine.com/u/GamerAwesome949)\
**Post date:** [May 14, 2021, 10:35pm UTC](https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291/6 "2021-05-14T22:35:37Z")

</div>

The monster detects that the projectile hit its static mesh head, preferably.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 15, 2021, 8:06am UTC](https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291/7 "2021-05-15T08:06:15Z")

</div>

> The monster detects that the  
> projectile hit its static mesh head,  
> preferably.

 ![338878-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/2/192295f042eedd4208b49e42e7fa212715e26bd3.jpeg)

[![Image from Gyazo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/b/8/db819d1f5652009a1329b2742802c43df811ec53.gif)](https://gyazo.com/c5e843d4e4e54a7238f38e7a521d0deb)

This was done in the first person template. No settings modified, the meshes are a part of the engine. I’ll post their settings below.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 15, 2021, 8:07am UTC](https://forums.unrealengine.com/t/oncomponentoverlap-not-working/483291/8 "2021-05-15T08:07:59Z")

</div>

The head:

 ![338879-01-head.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/5/4a5ec80d6e9088f0f67d334cac6ccc873993daac.jpeg)

The projectile:

 ![338880-proj.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/5/c/55c9601efa9fd006875ab32d41727a43c387c40b.png)

See if you can double-check these.
