game.MapLoadType

From Garry's Mod
Jump to: navigation, search
 game.MapLoadType( )

Description

Returns the map load type of the current map.

After changing the map with the console command changelevel, "newgame" is returned. With changelevel2 (single player only), "transition" is returned.

Returns

string

The load type. Possible values are: "newgame", "loadgame", "transition", "background".
Personal tools
Navigation