Problem with my enemy attack blueprint

Hello guys I am making the the AI for my zombie and I want it to attack the player when it collide, i am using a box collision it works perfectly how ever every time I press play it does not matter how far from the player is it will trigger the function to attack and i don’t know how to fix it i need a little help


that is my blueprint for the attack

really thanks for your time guys

Can you show pictures of what you are doing on Begin Play for both BPs? Also, what are your collision profiles set to? Maybe your box is overlapping with the zombie mesh and it triggers the event as soon as the game starts.

EDIT: You should update your logic to include a check to see if the overlapping actor is the player.

1 Like

Try dragging off the Other Actor pin from begin overlap, see if it’s the player class, then call the damage function.

Right now, your zombie is probably causing you damage when it overlaps the floor or something.

1 Like

THANKS SO MUCH BROTHERRRRRRR i am learning unreal so i really appreciate the help man

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.