- Home /
Attack,Health and enemy health.
HI, I have almost finished making my rpg but the main thing that is really annoying me is the attack system, basically what i need is an Attack,Health and enemy health system that when u click, ur sword plays an animation and if that sword hits an enemy it will take off the enemies health.
thx
Answer by Tourist · Dec 13, 2012 at 06:47 PM
You may attach a collider to your sword gameobject. Whenever the collider hits another collider, you will get the collision info and you can send a message to the other collider's gameobject to decrease his health point.
Is that an answer to your request? It is not very clear what you ask for.
Your answer
Follow this Question
Related Questions
Weapon and enemy health 0 Answers
I use this script, but the enemy lose health if i don´t target him. 1 Answer
Lose health on collision 1 Answer
Melee Damage script by collision 2 Answers