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
Category: bots (17)
bot_autofillCategories
Parameters
- auto fill (0/1): automatically keep server filled with bots (1) or not (0)
Info
Automatically fill the server with bots. bot_count will be ignored if you enable auto fill. Bots will only join the team(s) you specify with bot_jointeam. Moreover auto fill is affected by the setting bot_keepfreeslots. All slots will be filled if bot_keepfreeslots is 0. The server will try to keep 1-2 free slots to allow players to join if bot_keepfreeslots is 1.
Note: bot_jointeam affects auto filling
Note: bot_keepfreeslots affects auto filling
Attention: bot_count will be ignored if bot_autofill is enabled!
Lua Hooks
Lua Commands
Categories
Parameters
- auto fill (0/1): automatically keep server filled with bots (1) or not (0)
Info
Automatically fill the server with bots. bot_count will be ignored if you enable auto fill. Bots will only join the team(s) you specify with bot_jointeam. Moreover auto fill is affected by the setting bot_keepfreeslots. All slots will be filled if bot_keepfreeslots is 0. The server will try to keep 1-2 free slots to allow players to join if bot_keepfreeslots is 1.
Note: bot_jointeam affects auto filling
Note: bot_keepfreeslots affects auto filling
Attention: bot_count will be ignored if bot_autofill is enabled!