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_goto

Categories

Parameters

  • id
  • x
  • y
  • [walk] (optional)

Info

Bot with the given ID goes to tile (x|y). Set walk to 1 to let it walk (silent).
Returns 0 when failed to find path, 1 when target is reached or 2 when bot is still on its way.