Questions about Enemies

Hey guys,

I’ german so I could make some mistakes. I’m sorry…

I have a question about my enemies.
I’m creating a little survival game and now I’m going to add some NPCs. I made a controller BP (If the enemy sees the player, he walks to his location; The enemies can attack an kill the player) and now I’ve a little problem: If I spawn one enemy, I can kill it. But if I spawn two or more, it always dies the first I placed. But all enemies can attack me.
So, I want to make that the BP recognizes the Actor I’m attacking and sets the health of only THIS actor.
Have I to make several BPs? And how do I make the BPs cast to the right enemy?

I uploaded some screenshots. I know, it’s certainly not the best way to create NPCs, but I’m beginner. If you’ve got any proposals, tell me please.

Thank you =)

In your screenshot 33 you cast enemies to enemies, you don’t need that cast since enemies already is an ‘enemies’, and is that enemy node set to the enemy you want to damage?
In screenshot 34 you forgot to hook up the set isdead boolean.
Also I would advise to use the build in damage system from unreal since that is optimized for multiplayer and is faster than most BP systems you build yourself :wink:

*question about enemies not questions :slight_smile:

Hey thank you for answering! :slight_smile:
I tried to use the damage system but I don’t get a few things, for example where I can edit the functions.
Is there any tutorial?