Simple Java Script question

Okay now i been searching around on forum like a jerk for a while. So i wonder if anyone can be nice and help me with a simple script. that destoys my player(Sten) every time i collide with a specific object(Zombie)

Thanks in advance //Anton Ek

Well... Do you have a health system? If so, incorprate it with that.

If not, do an on collision, check if it's a zombie (With tags), and then if it is, destroy, if not, do nothing/play sound/w/e.

http://unity3d.com/support/documentation/ScriptReference/Collider.OnCollisionEnter.html

http://unity3d.com/support/documentation/ScriptReference/GameObject.html <

http://unity3d.com/support/documentation/ScriptReference/Object.Destroy.html

Have fun!