How to make AI damage player?

Hi! I’m almost done here, now I only need to make my AI damage my actor when it’s close to MyCharacter… I’ve got some help from someone before but his blueprint doesnt work for me… I’ve HP systems for both my AI and my player.

I’ll add some screens to show my blueprints.

Please help! :slight_smile:

On the first Blueprint connect a wire from the == compare node to the condition on the Branch node. It’s not working probably because it’s registering always as false right now.

Still doesn’t work :confused:

Hi Golge,

What you should do is cast to the player, and if the cast succeeds then run the damage. This is a rough idea of what I did to get this to work:

Thanks man! So kind of you to add screenshots :slight_smile: