Commands/Lua

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

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Lua Command Lua Commands

Category: all (86)

Lua Command ai_selectweapon

Categories

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!