Frictional Games Forum (read-only)

Full Version: Load up a new world
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is the void to exit the current map and go to a different one (Sorta like clicking on a level door then a new map comes up)
Are you talking about

void OnLeave()
{
//yada yada
}

vv Scroll down!
I think he means ChangeMap()
(07-02-2012, 06:32 AM)SilentStriker Wrote: [ -> ]I think he means ChangeMap()
Ah, I think you're right!

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

Immediatly loads another map.

asMapName - the file to load
asStartPos
- the name of the StartPos on the next map
asStartSound
- the sound that is played when the change starts
asEndSound
- the sound that is played when the new map is loaded