Two Objects Touching???

Whenever I use this code the variable doesn’t change when I’m in the object (The object is a trigger).

var InSuitableArea : int = 0;

	function OnCollisionStay (collision : Collision) {
	
	if (collision.collider.tag == "VaultTrigger"){
	InSuitableArea = 1;
	}
	}

Please Help!!!

Try OnTriggerStay instead of OnCollisionStay. There are separate sets of Trigger functions and Collision functions. The trigger functions will be called on both the trigger object and the collider object so this can go in a script on either game object.

Note that the collider hitting the trigger must have a rigidbody attached.