// what to trigger\r
}\r
\r
-.string chmap;\r
+.string chmap, gametype;\r
void spawnfunc_target_changelevel()\r
{\r
+ if(self.gametype != "")\r
+ MapInfo_SwitchGameType(MapInfo_Type_FromString(self.gametype));\r
+\r
if (self.chmap == "")\r
localcmd("endmatch\n");\r
else\r
-------- KEYS --------
targetname: The name other entities can use to target this entity
chmap: Map file to switch to, leave empty to make this entity just end the match instead
+gametype: Switch to this gametype. If empty, the same gametype stays.
*/
\ No newline at end of file