Basically, you do not have to script it at all. Everything can be done with the Level Editor.
Press the entitytab on your leveldoor and scroll down till' StartPos and MapFile. Write newarea in StartPos and 02.map in in the MapFilebox, and it will work.
If you want to script it, put a SetEntityPlayerInteractCallback("NameOfYourLevelDoor", "MapChangeFunc", false); inside the start function, and use this as the callback function:
void MapChangeFunc(string &in entity)
{
ChangeMap("02.map", "newarea", "", "");
}
(07-29-2012, 12:24 AM)Soverain Wrote: So it would be like this? void ChangeMap("02.map", "newarea", "", "");
how can i script the door to activate the transition? I have the level transition door but nothing happens when click it