I’ve been looking around online and doing all the tuts I can, but two hours later I think I might just need a hand.
So, on my character controller I have a health script which does two things, tells the character how much health he has, and displays it on the HUD.
Now lets say some dude comes along and hits our charater with something painful.
The script will be contained in him, such as how much damage he’s gonne do etc.
How do i make the character get damaged etc.
I will post my scripts if they are of use.
Thats the player health thing.
So, how do I make enemies actually lower that health. ( I already know how to make him die when health reaches zero, thats fine)