# Query Only and OnComponentHit

**URL:** <https://forums.unrealengine.com/t/query-only-and-oncomponenthit/482835>\
**Category:** C++\
**Tags:** blocking-volume, unreal-engine, CPP, question\
**Created:** [May 3, 2021, 2:55pm UTC](https://forums.unrealengine.com/t/query-only-and-oncomponenthit/482835 "2021-05-03T14:55:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [May 3, 2021, 2:55pm UTC](https://forums.unrealengine.com/t/query-only-and-oncomponenthit/482835/1 "2021-05-03T14:55:46Z")

</div>

I’m using “Query Only” and it triggers “OnComponentHit”. I suppose that OnComponentHit triggers when two objects blocks each other but I’m using “Query Only” which won’t block an actor and I suppose it will trigger Overlap events. Am I totally confused with “Query Only”?

---

<div class="post-metadata">

**Author:** ![ViaCognita](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/viacognita/32/906601_2.png) [@ViaCognita](https://forums.unrealengine.com/u/ViaCognita)\
**Post date:** [May 4, 2021, 6:04am UTC](https://forums.unrealengine.com/t/query-only-and-oncomponenthit/482835/2 "2021-05-04T06:04:46Z")

</div>

These kinds of questions raise little interest here.

I found the answer in the book “[Game Development Projects With Unreal Engine: Learn to Build Your First Games and Bring Your Ideas to Life Using UE4 and C ++](https://www.packtpub.com/product/game-development-projects-with-unreal-engine/9781800209220)”. And the answer is:

It is correct. _Query only_ is related to collision events and whether objects will bock each other’s movement. So yes, I’m using the right _Collision enabled_ property to block, and also it is the right _Collision enabled_ property to detect overlapping also.
