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_freezeCategories
Parameters
- freeze bots (0/1): freeze bots (1) or not (0)
Info
This setting allows you to freeze/unfreeze bots. When it is set to 1, all bots will be frozen. This means that the AI Lua functions will not be invoked anymore. This will result in bots which do not move anymore.
Note: CS2D can set bot_freeze to 1 automatically if a Lua error occurs during AI script execution. This functionality has been added to prevent that errors in the AI script spam the console.
Lua Hooks
Lua Commands
Categories
Parameters
- freeze bots (0/1): freeze bots (1) or not (0)
Info
This setting allows you to freeze/unfreeze bots. When it is set to 1, all bots will be frozen. This means that the AI Lua functions will not be invoked anymore. This will result in bots which do not move anymore.
Note: CS2D can set bot_freeze to 1 automatically if a Lua error occurs during AI script execution. This functionality has been added to prevent that errors in the AI script spam the console.