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 (85)

Lua Command ai_buy

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!