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_countCategories
Parameters
- count (0-32): number of bots which will join the server after starting
Info
Select how many bots will join the server after starting it. It does not have any effect when you execute it after starting. Use bot_jointeam to control which team(s) the bots will join. The value of bot_count will be ignored if you use auto fill (bot_autofill).
Note: bot_count is affected by bot_jointeam!
Note: bot_count is NOT affected by bot_keepfreeslots and blindly fills the server with bots until it is full or until the specified number of bots is reached!
Attention: bot_count will be ignored if bot_autofill is enabled!
Lua Hooks
Lua Commands
Categories
Parameters
- count (0-32): number of bots which will join the server after starting
Info
Select how many bots will join the server after starting it. It does not have any effect when you execute it after starting. Use bot_jointeam to control which team(s) the bots will join. The value of bot_count will be ignored if you use auto fill (bot_autofill).
Note: bot_count is affected by bot_jointeam!
Note: bot_count is NOT affected by bot_keepfreeslots and blindly fills the server with bots until it is full or until the specified number of bots is reached!
Attention: bot_count will be ignored if bot_autofill is enabled!