How can I set up an AI health system?
Hi! I'm pretty new to ue4 and can't find a really suiting tutorial for this.. I've a working AI that spawns on a location, walks to random spots on her nav mesh and as fast as I enter the nav mash she runs towards me.. Now to my problem.. When I wanna shoot her I need some sort of health system on her.. Now when my projectile hits I only get my print string.. What have I done wrong or have I missed something important out? I'll add some screens to my two blueprints :)
Oh and ye, I'm using the FPS-bluprint project Cheers
Well does it have HP and a handle for the damage?
Within your actor you need to grab that input and handle it somehow. There should be a node called "took damage" or very similar which receives all kinds of "apply damage" events and allows you to calculate shields and all that stuff.
TLDR: You already deal the damage. Now you need to put a HP system behind it.
Follow this question
Once you sign in you will be able to subscribe for any updates here