its me again today with another script. it shows again some compiler errors… its disgusting:D
heres it:
var playerHealth = 120;
var GameObject = Transform;
function OnColliderEnter() {
playerHealth - 5; //5 is the bullet damage
}
function Update () {
if (playerHealth <= 0);
destroy.GameObject; //kill the player gameobject
}
thanks for answers!