
Help
Command Reference
You can enter CS2D script commands in the console, save them in cfg-files or bind them to keys. CS2D script commands are no Lua commands but they can still be executed in Lua scripts by using the Lua parse-function!
Commands
Lua Reference
Lua scripting (server-sided) allows server hosters and mappers to modify the game and to add new elements.
Lua Hooks
Lua Commands
Category: all (66)
ai_selectweapon
Categories
AI
Parameters
- id
- itemtype
Info
Bot with given ID selects the weapon specified with itemtype (must be an integer ID, not the name of the weapon!).
Note: The weapon has to be in the inventory of that bot already. Otherwise nothing will happen!






