var health = 10;
var TakeDamage : boolean;
function OnTiggerEnter(other : Collider){
if(other.tag == “Player”){
TakeDamage = true;
}
}
var health = 10;
var TakeDamage : boolean;
function OnTiggerEnter(other : Collider){
if(other.tag == “Player”){
TakeDamage = true;
}
}
The function is OnTriggerEnter not OnTiggerEnter unless you are referring to the children’s comic character!
var health : int = 10;
var TakeDamage : boolean;
function OnTriggerEnter(other : Collider){
if(other.tag == "Player"){
TakeDamage = true;
}
}
Please use code formating (select the code text and click the 1010101 button) when posting, as well as a copy of the error message in the future.