!Load a level on a mp server, keeping the current clients connected to the current server @param sMapName the name of the map to load @param sMissionName the name of the mission[optional] */
| 1194 | @param sMissionName the name of the mission[optional] |
| 1195 | */ |
| 1196 | int CScriptObjectGame::LoadLevelMPServer(IFunctionHandler *pH) |
| 1197 | { |
| 1198 | const char *szMapName; |
| 1199 | const char *szMissionName = ""; |
| 1200 | |
| 1201 | pH->GetParam(1,szMapName); |
| 1202 | if(pH->GetParamCount()==2) pH->GetParam(2,szMissionName); |
| 1203 | |
| 1204 | m_pGame->LoadLevelCS(true, szMapName, szMissionName, true); |
| 1205 | |
| 1206 | return pH->EndFunction(); |
| 1207 | } |
| 1208 | |
| 1209 | /*! Get the game version as a string |
| 1210 | */ |
nothing calls this directly
no test coverage detected