Sphere Trace By Objects

I have a problem that when AI start animation always hit my player. Even if my player it’s out of range.

AttackPlayerTask:

AttackBpAI:


BBTree:

BpPlayerReceiveDamage:

Hi @Untalmarian

From what I see in your screenshots I’d say the problem is here
image

You’re using world rotation from the sphere, which can have numbers up to 360, so you may be projecting your sphere really far away.

If you want a real sphere as your Sphere Trace, the End should be the same as your Start Location, and the radius how big you want your sphere to be.
If you want to project forward, you have to use SphereGet Forward Vector and multiply that by 500 or the distance you want your Trace to travel.