Frictional Games Forum (read-only)

Full Version: load another map
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, this is Another noob question :S but i found this

void ChangeMap(string& asMapName, string& asStartPos, string& asStartSound, string& asEndSound);


but somethings missing.. right? " changemap " is only a function so where can i find the other part that should be at the top of the script? Smile

or maybe i dont need Another thing but at least somewhere i should put the name of the door so it know when i open the door it should load Another map :S
You don't need the void. It's like any other function, just put it between the brackets and you're fine.

Edit: and if you want to use a door, simply place it and enter the name and startpos of the next map.
ChangeMap("Me2.map", "start", "unlock_door", "close_door");

it loads the second map when i start the first map :/
i want it to load the other map when i open the door

"level_cellar_door" i Think it is i have placed out but anyway, if i open it wouthout a script i get a error and if i have the script it loads in the beginning (Spelling)
You don't need the script when you're using a level door.. Just place the level door and enter the right names for your map and startpos. There are several tutorials on how to do this, just look it up in the wiki.
sorry for bothering.. just figured out that.. xd