# Projectile bounces off Character, but never returns any Hit events

**URL:** <https://forums.unrealengine.com/t/projectile-bounces-off-character-but-never-returns-any-hit-events/422459>\
**Category:** World Creation\
**Tags:** projectile-movement, oncomponenthit, unreal-engine, Physics, hit-event, Collision, question\
**Created:** [April 12, 2018, 7:30pm UTC](https://forums.unrealengine.com/t/projectile-bounces-off-character-but-never-returns-any-hit-events/422459 "2018-04-12T19:30:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay2645](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jay2645](https://forums.unrealengine.com/u/Jay2645)\
**Post date:** [April 12, 2018, 7:30pm UTC](https://forums.unrealengine.com/t/projectile-bounces-off-character-but-never-returns-any-hit-events/422459/1 "2018-04-12T19:30:46Z")

</div>

I started from a blank project and currently have a Projectile actor which uses the ProjectileMovementComponent. I’ve wired up the OnHit delegate like so:

 ![237259-screenshot-60.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/a/1ba83f94a881c763d9263c6e2b8c623b0d184c26.png)

You can see that I’m using both `OnActorHit` and `OnComponentHit` – I was just using `OnComponentHit` originally, but added `OnActorHit` after I wasn’t getting anything printed to the log (to no avail).

This is how I’ve set up my `OnProjectileHit` function:

 ![237260-screenshot-61.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/1/2/612a0864a7b5bd713ac71beeda5d90fd1732aa12.png)

It should print something to the log, damage the thing it hit, then destroy the projectile. However, instead it’s just bouncing off the player, never writing anything to the log. I added another print function to show the weapon being fired – you can see that despite me firing the weapon multiple times (spawning a Projectile each time), I never see that hit message.

 ![237261-screenshot-62.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/9/f29c588361f679991699f622a211bcc8a59e7e8f.jpeg)

I’ve set up `Simulation Generates Hit Events` on both the Capsule Component wired up to the Character and the Projectile’s Sphere Component. I can see the Projectile bouncing off of the player, and if I change the collision settings on the Projectile (either in Blueprint or in code), I can see those collision settings reflected ingame.

Here’s my Character’s Capsule Component collision settings:

 ![237262-screenshot-58.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/3/aa323a012a1daf8e31532829962c5ac8eddbbcef.png)

And here’s my Projectile’s Sphere Component collision settings:

 ![237263-screenshot-59.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/c/97ce9c602ebaf055e967c2ff84607c06f1d60024.png)

Is there something obvious I’m missing here? I’ve been tearing my hair out over this for the past 2 days straight. Before I wrote any code, I made a prototype of this completely in Blueprints (starting from the First Person Example project). If anything I had the opposite problem there, where my projectiles were generating too many Hit events. Now, I started a fresh, blank C++ project with the goal of making the “real” game, and I can’t even get them to generate one. What gives?

---

<div class="post-metadata">

**Author:** ![Jay2645](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jay2645](https://forums.unrealengine.com/u/Jay2645)\
**Post date:** [April 13, 2018, 8:56am UTC](https://forums.unrealengine.com/t/projectile-bounces-off-character-but-never-returns-any-hit-events/422459/2 "2018-04-13T08:56:32Z")

</div>

Fixed the issue. You can’t bind delegates in the constructor; you need to do it in `BeginPlay` or `PostInitializeComponents` (where I wound up doing it). Moving the `AddDynamic` calls there fixed the issue.

---

<div class="post-metadata">

**Author:** ![satrya070](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@satrya070](https://forums.unrealengine.com/u/satrya070)\
**Post date:** [November 19, 2024, 11:16pm UTC](https://forums.unrealengine.com/t/projectile-bounces-off-character-but-never-returns-any-hit-events/422459/3 "2024-11-19T23:16:22Z")

</div>

Thanks dude, you saved my life. It’s still weird tho, and it actually is possible to make it work setting it in the constructor, as I had it working that way initially. But it was weird, I got for some youtube tutorial in which: it was temporarily setting some other (scene)component as the root, then the delegate function was set, and afterwards it was made the root. I think it can’t be set when it’s set as the root. Just documenting it here, in case someone deals with this stuff.
