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

Lua Command ai_aim

Categories

Parameters

  • id
  • x
  • y

Info

Bot with given ID aims at the given position (x|y) on the map (in pixels). Aiming happens smoothly (over multiple frames).

Note: bot_skill has an impact on the rotation speed and on how long it takes to aim at the target!