- Home /
Attack Script
Hi I am making a zombie game. I have everything except the script for the zombie to just hit my character at close combat. They do not have any weapons. They have a capsule body,two arms, a sphere as a head and 2 spheres as eyes. So is there any script that can damage my character without my zombies have some sort of weapon?
I think you aren't understanding the usual meaning of 'weapon' in this case. 'Weapon' is an abstraction which can apply to any object which can cause damage to another entity! So, bare arms are still a weapon in this case. There is nothing especially different about this case just because the zombies are 'unarmed'- you can find the answer in just about any post about melee attacks.
Answer by rowdyp · Nov 09, 2011 at 04:01 AM
just use the collision of the collider on the zombie and your character. When they collide, just subtract the proper amount of damage.
Your answer
Follow this Question
Related Questions
Script Attack zombie 1 Answer
Zombie attack script help 1 Answer
How can I make my Axe in unity do damage to my Zombies 6 Answers
My attack script is broken, please help. 1 Answer
Ai Zombie Melee Attack script. 5 Answers