Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Category: server (199)

CS2D Command bot_freeze

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.

Lua Hook Lua Hooks

Lua Command Lua Commands