OnTriggerEnter does not work?

In my game I’ve set a tracking shot of the game world, which is a seperate unity file. However I’ve set a trigger at a specific point and after the camera has entered this trigger, the level, which is another seperate unity file, should load - but it does not. (yes, I’ve added all the levels in the “Build Settings”)

I’ve been spending hours in trying to fix this but without success - hopefully anybody of you guys got an idea what could be wrong with code:

#pragma strict

public var checkenter : boolean = false; 

function Start () {
	
}

function Update () {
	if (checkenter == true) {
		Application.LoadLevel("Level Jumper - Level1");
	}
}

function OnTriggerEnter () {
	checkenter = true;
	
}

Thanks a lot for your help in advance!!

You’re missing the parameter for the function:

function OnTriggerEnter(other : Collider)
{
// stuff
}

Unity Engine needs to be able to match the function with parameters.

Edit: updated to use unityscript parameter and not c#, my mistake.

the parameter is only necessary if you needed information about the object you triggered or collid with. The method function also works without.