# Sphere Overlap always hit

**URL:** <https://forums.unrealengine.com/t/sphere-overlap-always-hit/819915>\
**Category:** Blueprint\
**Tags:** overlap-events, unreal-engine, Blueprint, question\
**Created:** [March 25, 2023, 5:38am UTC](https://forums.unrealengine.com/t/sphere-overlap-always-hit/819915 "2023-03-25T05:38:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Untalmarian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Untalmarian](https://forums.unrealengine.com/u/Untalmarian)\
**Post date:** [March 25, 2023, 5:38am UTC](https://forums.unrealengine.com/t/sphere-overlap-always-hit/819915/1 "2023-03-25T05:38:42Z")

</div>

I have an AI Titan who an AoE attack. I’m using a sphere overlap to make this attack but always hit. It’s doesn’t matter if my player is in range. If i was ever in range, it’s gonna hit me.

Titan Attack:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/6/56603599f28da615e2d3dc7c9ccf43fc5a5b45ff.png)

Titan BBT Attack:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/8/848ea57acf2fc914cd6fe1a7a06ca6f5ecec207e.png)

Receive Dmg Player:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/8/58856c29488b514b02e7f6c58014d2d6d416384f.png)

---

<div class="post-metadata">

**Author:** ![56legion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/56legion/32/1194529_2.png) [@56legion](https://forums.unrealengine.com/u/56legion)\
**Post date:** [March 25, 2023, 8:39am UTC](https://forums.unrealengine.com/t/sphere-overlap-always-hit/819915/2 "2023-03-25T08:39:35Z")

</div>

I don’t really understand the language you are using. But I might see the problem.  
Inside your “Titan” class, the AttackPlayer event, why do your “sphere overlap actors” originate from the player location? Why not from your “Titan” class? Because you need to understand that your “Titan” is the one that should emit the trace since the attack came from it.

I might be wrong because I don’t really understand the language there.

---

<div class="post-metadata">

**Author:** ![Untalmarian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Untalmarian](https://forums.unrealengine.com/u/Untalmarian)\
**Post date:** [March 25, 2023, 3:10pm UTC](https://forums.unrealengine.com/t/sphere-overlap-always-hit/819915/3 "2023-03-25T15:10:24Z")

</div>

Thank’s for reply. I’m starting in this world so i don’t know if my code it’s ok or not. When u talk about the language, how could you do it? I wanna my titan hit the floor with your feet and apply damage if my player is on range

---

<div class="post-metadata">

**Author:** ![56legion](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/56legion/32/1194529_2.png) [@56legion](https://forums.unrealengine.com/u/56legion)\
**Post date:** [March 26, 2023, 1:19am UTC](https://forums.unrealengine.com/t/sphere-overlap-always-hit/819915/4 "2023-03-26T01:19:11Z")

</div>

You want your trace to be from the enemy location and **NOT** from the player.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/5/49540dcabd622f64764ae391ae1ee270c3add1bb.jpeg)

This is what I did in my enemy class. Change the “PlayerCharacterBase\_C” to your player class.

> **[Simple Sphere Trace Apply Damage posted by 56Legion | blueprintUE | PasteBin...](https://blueprintue.com/blueprint/f6ki854h/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![Untalmarian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Untalmarian](https://forums.unrealengine.com/u/Untalmarian)\
**Post date:** [March 26, 2023, 3:22pm UTC](https://forums.unrealengine.com/t/sphere-overlap-always-hit/819915/5 "2023-03-26T15:22:07Z")

</div>

Thank’s dude! That works for me
