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: ai (20)

Lua Command ai_build

Categories

Parameters

  • id
  • building
  • x
  • y

Info

Bot with given ID tries to build a building at tile position (x|y). Building has to be a building integer id, not a string. The position has to be a free tile next to the current position of the bot.

Buildings (Class 1 only!):
buildings