| Blockland Forums > Modification Help |
| ChangeMap(); (SOLVED FOR NOW) |
| (1/2) > >> |
| Swollow:
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 |
| Nexus:
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. |
| Greek2me:
Use $Server::MissionFile to get the path of the current map. |
| Port:
To change to "Add-Ons/Map_Bedroom/bedroom.mis", use changeMap("bedroom"); changeMap( fileBase( map path ) ); |
| Greek2me:
Note that using the changeMap function does not perform mission cleanup. You must also call missionCleanup.chainDeleteAll(); |
| Navigation |
| Message Index |
| Next page |