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_rotate

Categories

Parameters

  • id
  • angle

Info

Bot with given ID instantly turns to certain direction/angle (from 0° to 360°).

Note: If you want to let a bot aim at a specified point you can use ai_aim instead.