Download

Ai And Player Health System

So im making an Ai based from a tutorial but when i got into the part where the player have health system and the ai can deplete it and i thought it was good until i try it out to apply it backwards from the player to the ai so the point is the ai can shoot and deplete the players health while the player cant even though i used the same system so am i doing something wrong heres a pic

c3d05ca119916117dd25ba4ccf78814ecb4ddf79.png

ec64e1d6333c3eb440a91d23604089e09b1279ad.jpeg

d750d675fd55f71b29611634fc375063cdc5e936.jpeg

9661aebcbfb307b1442c28f84d38784528573400.jpeg

4cf7c76299bbd8f908e1ad00a1fc50df362252dd.png

what im trying to do with the ai health system is try to minus it when its hit by a projectile