# Event BeginOverlap not always working

**URL:** <https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589>\
**Category:** Blueprint\
**Tags:** fps-shooter-game-sam, overlap-actors, unreal-engine, UE4, Blueprint, question, box-overlap\
**Created:** [January 15, 2018, 8:10am UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589 "2018-01-15T08:10:20Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a8729913](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a8729913](https://forums.unrealengine.com/u/anonymous_user_a8729913)\
**Post date:** [January 15, 2018, 8:10am UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/1 "2018-01-15T08:10:20Z")

</div>

So i’m making an fps game, and when i fire a weapon it spawns a bullet. When this bullet overlaps a player, it should deal damage. This all works fine when i have a framerate of 50+. But when my framerate drops below this, the overlap event in the character blueprint doesnt always trigger, even though i’m sure the bullet hits him. I also noticed it has to do with the speed of the bullet, lowspeed bullets trigger the overlap event more often than high speed bullets. How can i make the overlap event always work?

(something like priority or forced updating maybe??)

This is the blueprint in the character:

 ![227071-notergistering.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/b/bdb72af39502cd6d30e10d8ffc0ff73e05898464.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [January 15, 2018, 8:22am UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/2 "2018-01-15T08:22:46Z")

</div>

I would do it a bit differently.

1. Don’t use actor overlap, use component hit (the component that is set up to collide)
2. Turn on “CCD” for that component

Then your bullets won’t go through anything, even when the frame rate drops.

Another tip: don’t use meshes for stuff like bullet collision. Your root component should be a Collision sphere (or capsule) and your mesh should be its child. Set the collision component to collide with things and set your mesh to No Collision.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_277c86b9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_277c86b9](https://forums.unrealengine.com/u/anonymous_user_277c86b9)\
**Post date:** [January 15, 2018, 8:25am UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/3 "2018-01-15T08:25:16Z")

</div>

does it have a projectile movement component? if so, take a look at “projectile simulation” category.

![227069-p.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/1/321bbebe921dc84cda0fc9a228d7f8be08d5fc09.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a8729913](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a8729913](https://forums.unrealengine.com/u/anonymous_user_a8729913)\
**Post date:** [January 15, 2018, 5:50pm UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/4 "2018-01-15T17:50:34Z")

</div>

yes it does, but all maxed out!

![227127-max.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/0/a90312f09f11903d240005994713f34a478487a2.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a8729913](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a8729913](https://forums.unrealengine.com/u/anonymous_user_a8729913)\
**Post date:** [January 15, 2018, 6:19pm UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/5 "2018-01-15T18:19:16Z")

</div>

I don’t know how to set this up with event hit. when i set the projectile movement to 0, it does register hit events with my player pawn, but when the bullet moves it doesnt…can you make an example?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_49a519741](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_49a519741](https://forums.unrealengine.com/u/anonymous_user_49a519741)\
**Post date:** [January 15, 2018, 6:56pm UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/6 "2018-01-15T18:56:01Z")

</div>

Here’s what you do to get the mesh to never go through another object that it’s set up to block.

1. Make sure the mesh is the _root_ component, and set it up for _blocking_ collisions with the things you want bullets to hit
2. Select the mesh and scroll down in the details panel and look for the green buttons, click on the one for “OnComponentHit” and add your reaction code after the event node that is created
3. In the mesh details panel, search for “CCD” and enable it (_Continuous_ collision detection)

I recommend using collision boxes/spheres/capsules because mesh collision can cause problems in some cases. Better to just use colliders, but you should be fine in this situation.

There are dozens of video tutorials covering projectiles and hit events. They may be able to show you better than I can explain in text…

Side note: you cannot have Simulate Physics enabled when using a projectile movement component (and your collision mode should be “Query Only”).

---

<div class="post-metadata">

**Author:** ![Arceyo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arceyo](https://forums.unrealengine.com/u/Arceyo)\
**Post date:** [January 15, 2018, 9:19pm UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/7 "2018-01-15T21:19:20Z")

</div>

The previous answers are all valid ways of handling projectiles for FPS games, though I figured I’d go ahead and throw out the idea of using line traces instead of projectiles on the off chance you didn’t know about them. Of course, there could be a hundred reasons you’d want to use projectiles instead of traces, situation dictates really, just thought I’d put it out there since it wasn’t mentioned yet.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a8729913](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a8729913](https://forums.unrealengine.com/u/anonymous_user_a8729913)\
**Post date:** [January 15, 2018, 11:20pm UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/8 "2018-01-15T23:20:48Z")

</div>

Thanks for your answer. The game is actually an airsoft game, which means bullets go “slow” and there is a delay between shooting a projectile and hitting someone. If i’d use a line tracer, this would be very difficult as you understand. Sorry for my unclear explanation 😉 thanks for the answer though! Appreciate it

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a8729913](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a8729913](https://forums.unrealengine.com/u/anonymous_user_a8729913)\
**Post date:** [January 15, 2018, 11:23pm UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/9 "2018-01-15T23:23:05Z")

</div>

Oh well. Thanks for your answer. Figured it was the root component thing, i had my hitbox as a child of the mesh. I’m still using overlap events with a hitbox because i’m more familiar with overlap events. Your trick did it thought! Thank you very much!

---

<div class="post-metadata">

**Author:** ![Arceyo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Arceyo](https://forums.unrealengine.com/u/Arceyo)\
**Post date:** [January 18, 2018, 2:56pm UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/10 "2018-01-18T14:56:46Z")

</div>

Hey fair enough. I just didn’t want to assume that you already knew about an alternative way of doing it. Sounds like your reasoning is completely valid though. Best of luck to you and your development.

---

<div class="post-metadata">

**Author:** ![AWE\_some\_ZT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AWE\_some\_ZT](https://forums.unrealengine.com/u/AWE_some_ZT)\
**Post date:** [August 31, 2024, 3:50pm UTC](https://forums.unrealengine.com/t/event-beginoverlap-not-always-working/414589/11 "2024-08-31T15:50:27Z")

</div>

Appreciate this post. Make the collision component as root and turn on CCD does the magic.  
Processing: image.png…
