# Solution for OnComponentHit not firing on characters that are not moving 

**URL:** <https://forums.unrealengine.com/t/solution-for-oncomponenthit-not-firing-on-characters-that-are-not-moving/2295393>\
**Category:** World Creation\
**Tags:** unreal-engine\
**Created:** [January 21, 2025, 3:48pm UTC](https://forums.unrealengine.com/t/solution-for-oncomponenthit-not-firing-on-characters-that-are-not-moving/2295393 "2025-01-21T15:48:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CK-Trent](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CK-Trent](https://forums.unrealengine.com/u/CK-Trent)\
**Post date:** [January 21, 2025, 3:48pm UTC](https://forums.unrealengine.com/t/solution-for-oncomponenthit-not-firing-on-characters-that-are-not-moving/2295393/1 "2025-01-21T15:48:05Z")

</div>

I saw many topics regarding this bug but none gives an actual compromise-free solution. I encountered this bug today and found an easy solution so I’m posting it here.

So you got a character and something hitting it. You use the `OnComponentHit` event to check for hits on e.g., the capsule component. The problem is, that event only fires when the character moves and does not fire when it stands still, no matter how hard you hit it.

Turns out the origin of the issue is this boolean not being set:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/8/388bf5c0f320ca67cd3f884ac097f0b78a96096e.png)

Yep, set that option to true on your character capsule and `OnComponentHit` will fire even when character is not moving.

Notice that the `normal impulse` field of the hit, as in this image:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/5/035e8d4aaf6d448a2de2d30127509af1b688fca4.png)

This value seems to always be zero when the hit is generated by character kicking a movable object when navigating to a location. But I assume that’s more or less the desired behavior anyway.

---

<div class="post-metadata">

**Author:** ![Knuthnads](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Knuthnads](https://forums.unrealengine.com/u/Knuthnads)\
**Post date:** [November 14, 2025, 10:12am UTC](https://forums.unrealengine.com/t/solution-for-oncomponenthit-not-firing-on-characters-that-are-not-moving/2295393/2 "2025-11-14T10:12:46Z")

</div>

Would there be any particular reason this wouldn’t work even if ‘Simulation Generates Hit Events‘ is ticked?

My player character capsule is set up like so:

 ![Capsule Collision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/8/b18591938a75be2776a12213a2aa82b3e851b9ab.png)

Basically I set up the OnComponentHit event to simply print out a message:

 ![OnComponentHit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/9/b497c5a237a4fb05fb560e540cf6913dec1feb43.png)

If I walk into a wall it registers a hit, but if I get hit by a simple moving platform while standing still it doesn’t register a hit – only if I’m walking into it at the same time. The moving platform BP is set up like so:

 ![BP_MovingPlatform](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/c/d1c5c8c25c79e261e241d482fcb2540243e915a6.png)

¯\_(ツ)\_/¯
