Hello everyone! I am rather new to Unity, and I have only made a few test games so far. One of them was Moon Machine and then the FPS tutorial, but that got messed up due to several file errors.
Anyway, I am working on a test game to show some people who I am working with, and I need it by Monday. (7 days) Now, I have been working rather well, I even thought I would have this simple test done in a day, but then I hit the same wall as always.
The bloody damage wall.
Ok, so I have followed MANY tutorials or looked through other questions and so far nothing has worked. I almost had it at one point, and then it started talking about raycast.
To sum it up, this test game is a really simple game, where zombies move towards the player, doing damage on collision. The player fires bullets (Already working) which, on collision, do damage.
So, I have tried many different ways, but I have failed every time. I don’t have any scripts you guys (and girls!) can fix or help me with as almost every tutorial or question deals with them already having their own weapon system. My weapon system is simply:
“Left click”
“Bullet fires”
“Done”
I want it to:
“Left click”
“Bullet fires”
“Bullet collides”
“Enemy takes damage”
“Done”
My question is:
How can I make bullets and zombies do damage on collision?
Thanks for any help!
EDIT:
I have been doing everything in JavaScript, so I would prefer if I could get any scripts in that format.