Okay I've decided I'm restarting on my health system. I want it to work the same but built where it will actually work for my game. I need more advice on how to build it. The last health system shattered to pieces but the simple idea still stands. If you haven't seen the old health system their no need to go back I will describe it again.
**THE IDEA**
- Okay the idea start with a health variable, starting you out with 100 health.
If health equals less than 0 then you are dead.
- If you are hit by a gameObject (also rigidbody) with the tag Arrow. then subtract 10 points from your health.
- If you are dead (player) transform to (0,0,0).
- If enemy is dead (AI) destroy gameObject.
I have no idea what went wrong with the last one so don't even look at it. For the player I have a Character controller. For the AI I have a Rigidbody (for now)
I really need this script, I'm at the point where I really need it.
↧