# OnHitEvent of BP not fired (when hit BP InstanceStaticMesh, only fires OnComponentBeginOverlap)

**URL:** <https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379>\
**Category:** World Creation\
**Tags:** oncomponentbeginover, instance, unreal-engine, Instanced-Mesh, hit-event, Collision, question\
**Created:** [July 18, 2016, 2:04pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379 "2016-07-18T14:04:58Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_3149ac211](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3149ac211](https://forums.unrealengine.com/u/anonymous_user_3149ac211)\
**Post date:** [July 18, 2016, 2:04pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/1 "2016-07-18T14:04:58Z")

</div>

I have one BP, one static mesh component in it with its own collision. When this BP hit in game BP actor with many instances of ISMC, onhit event is not fire, only OnComponentBeginOverlap. This is problem because I can’t determine which instance exactly is hit to remove only that one (with removeinstance node)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [July 18, 2016, 8:14pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/2 "2016-07-18T20:14:05Z")

</div>

Hi Angel ,

- What collision settings do you have on your instanced meshes?
- Have you checked to ensure both your ISMC blueprint and your collision mesh for OnHit have “Generates Hit Events” set to true?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3149ac211](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3149ac211](https://forums.unrealengine.com/u/anonymous_user_3149ac211)\
**Post date:** [July 19, 2016, 5:36am UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/3 "2016-07-19T05:36:36Z")

</div>

1)In both my BP actors (with InstancedStaticMeshComponent and with StaticMesh+ProjectileMovement) I have checked “Simulation Generates Hit Events” and checked “Generate Overlap Events”

2)For “Collision Presets” I set any possible combinations (including "“BlockAll”) without success (for both my BP)

Only work “OnComponentBeginOverlap” but “EventHit” or “OnComponentHit(SatticMesh)” NOT (BP with StaticMesh+ProjectileMovement)!

Note: I create in game/procedurally my two BP actors (with InstancedStaticMeshComponent and with StaticMesh+ProjectileMovement)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [July 19, 2016, 1:44pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/4 "2016-07-19T13:44:15Z")

</div>

- Can you show me a screenshot of your hit event setup in blueprints along with your collision settings?
- Do you have any steps I can take to recreate this on my end?
- Does this occur in a clean, blank project with no additional content or is it limited to one project?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3149ac211](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3149ac211](https://forums.unrealengine.com/u/anonymous_user_3149ac211)\
**Post date:** [July 21, 2016, 8:23am UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/5 "2016-07-21T08:23:21Z")

</div>

Hello, sorry for my delayed answer. I made clean/blank example project. When hit “F” projectile go to ISMC but when hit or ovelap it OnHitEvent not rise  
Broken Projectile OnHitEvent when hit insatnce of ISMC

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [July 21, 2016, 3:06pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/6 "2016-07-21T15:06:49Z")

</div>

Hi Angel,

Check your collision in your projectile. I tested this on my end with a new FP project and did not experience any collision/OnHit errors with instanced meshes.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3149ac211](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3149ac211](https://forums.unrealengine.com/u/anonymous_user_3149ac211)\
**Post date:** [July 21, 2016, 4:14pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/7 "2016-07-21T16:14:08Z")

</div>

Hi, why add FP project? Did you succeed to rise OnEventHit when projectile toch ISMC???

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [July 21, 2016, 4:48pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/8 "2016-07-21T16:48:49Z")

</div>

The reason I tested in a FP project was to see if this error is isolated to one project or if it is a bug in ISMCs. Because it works in another project under similar conditions, it is safe to assume that the error in question is either specific to the assets being used or the collision settings within your projectile/ISMC. In this case, because you do not have a box collision/sphere collision component within your projectile blueprint, this could potentially lead to errors similar to what you are experiencing. Try adding a box collision into the projectile and setting the onHit event specifically to this box collision, then set the cube itself to No Collision. Do this and see if you get similar results.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3149ac211](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3149ac211](https://forums.unrealengine.com/u/anonymous_user_3149ac211)\
**Post date:** [July 21, 2016, 5:09pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/9 "2016-07-21T17:09:43Z")

</div>

I don’t want to use box/sphere collision, because my projectile change dynamic its scale over gameplay. But if collision of Static Mesh in projectile not work correct (in this particular situation), how this is not a bug?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [July 25, 2016, 2:23pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/10 "2016-07-25T14:23:04Z")

</div>

Not necessarily, it could simply be that some adjustments to the collision settings you are using is necessary to cause the projectile to accurately register. Try changing your collision settings that you are using to see if you get better results.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3149ac211](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3149ac211](https://forums.unrealengine.com/u/anonymous_user_3149ac211)\
**Post date:** [July 26, 2016, 7:31am UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/11 "2016-07-26T07:31:57Z")

</div>

I wrote before that I tried all possible collision settings on my Static Mesh in Projectile BP- not work! You can check the project for prove! I do not see the point to continue this thoughtless conversation any more …

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [July 26, 2016, 1:46pm UTC](https://forums.unrealengine.com/t/onhitevent-of-bp-not-fired-when-hit-bp-instancestaticmesh-only-fires-oncomponentbeginoverlap/364379/12 "2016-07-26T13:46:36Z")

</div>

Hi Angel,

We found what is occurring. In your projectile, take your static mesh component and make it the root component. The blueprint’s primary collision is set by the root component, so setting this should work as you intend.
