game/MapLoadType

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Provided the returned value after using changelevel and changelevel2)
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=MapLoadType
 
|Parent=game
 
 
|Description=Returns the map load type of the current map.
 
|Description=Returns the map load type of the current map.
 +
 +
After changing the map with the {{Lib|concommand}} ''changelevel'', "newgame" is returned. With ''changelevel2'' (single player only), "transition" is returned.
 
|Realm=Server
 
|Realm=Server
 
|IsClass=No
 
|IsClass=No

Revision as of 08:30, 4 November 2016

 game.MapLoadType( )

Description

Returns the map load type of the current map.

After changing the map with the concommand library 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