Author Topic: ChangeMap(); (SOLVED FOR NOW)  (Read 520 times)

Whenever I change map it says ChangeMap(<Path to map.mis from addon folder>); in trace, how would I efficiently get that path through a script
« Last Edit: May 10, 2012, 06:02:13 PM by swollow »

You might want to play around with these two variables
$Server::MissionFileSpec
$Client::MissionFile

I think you do need to do a search through your add-ons folder, however.

Use $Server::MissionFile to get the path of the current map.

To change to "Add-Ons/Map_Bedroom/bedroom.mis", use changeMap("bedroom");

changeMap( fileBase( map path ) );

Note that using the changeMap function does not perform mission cleanup. You must also call missionCleanup.chainDeleteAll();

To change to "Add-Ons/Map_Bedroom/bedroom.mis", use changeMap("bedroom");

changeMap( fileBase( map path ) );
I know but it has to work for custom maps, I think I already found a solution so Solved for now

I know but it has to work for custom maps, I think I already found a solution so Solved for now

changeMap already works for custom maps..? Just use it as I described in my previous post.