LoadLevel help!

Hey all,

I’ve been working with Unity for a while now, but I seem to be stumped by this one. Currently, I am making a horror game where you are stuck inside of a basement while a monster is chasing you. I’m using a trigger system to send the player to the death screen (new scene) when he touches the monster. The problem I am running into is whenever the monster touches ANY object, it sends me to the death screen. Is it possible to load a level ontriggerenter ONLY when the player enters the trigger? THANK YOU! It means a lot!

~Unity lover!

Place this piece of code on your player:

OnTriggerEnter(c : Collider){
    if(c.gameObject.tag == "Monster"){
        Application.LoadLevel(1);
    }
}

On your Monster GameObject, set his tag to “Monster”, and make an EmptyGameObject with a collider set to isTrigger, and place this collider onto the monster as a child like so:

Monster
    Trigger