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
Lua Hooks
Lua Commands
Category: ai (20)
ai_buyCategories
Parameters
- id
- itemtype
Info
Bot with given ID tries to purchase a certain item (itemtype=integer id, not a string).
Note: The bot has to be in a buy area to make this work. It does NOT walk into a buy area automatically when this command is called!
Categories
Parameters
- id
- itemtype
Info
Bot with given ID tries to purchase a certain item (itemtype=integer id, not a string).
Note: The bot has to be in a buy area to make this work. It does NOT walk into a buy area automatically when this command is called!