Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
mp_autogamemodeCategories
Parameters
- autogamemode (0-1): automatically switch gamemode?
Info
When enabled (1) this function will automatically switch to the best game-mode when loading a map.
It simply checks the map prefix to find the best game-mode. "as_", "cs_" and "de_" will make it switch to the standard mode for example.
Game modes are:
Lua Hooks
Lua Commands
Categories
Parameters
- autogamemode (0-1): automatically switch gamemode?
Info
When enabled (1) this function will automatically switch to the best game-mode when loading a map.
It simply checks the map prefix to find the best game-mode. "as_", "cs_" and "de_" will make it switch to the standard mode for example.
Game modes are:
It simply checks the map prefix to find the best game-mode. "as_", "cs_" and "de_" will make it switch to the standard mode for example.
Game modes are: