Using boolean ontriggerenter

There is something wrong with boolean, I can see my debug.log. It means correct but I can’t see my boolean becomes true in inspector. I change it to int type and nothing wrong. And my triggerenter do something for other script. I use this on enemies Update.

if(heard == 0 && Input.GetButtonDown("Fire1")){
	Debug.Log("Fire1");
	//do something
}

and for trigger on player

function OnTriggerEnter(other : Collider){
	if(other.gameObject.tag == "something"){
		//do something
heard == 0;
	}
}

It doesn’t work if I change heard type to boolean. I just can see Fire1 on console but heard boolean never becomes true and I just make it false on start function.

What? Please be clear on your english.

Your problem is this line:

heard == 0;

This should just be:

heard = 0;

Seems you mixed up the equals operator (==) with the assignment operator (=), the former checks if the values are equal the later assigns a value.