Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

Category: server (199)

CS2D Command setpos



  • player (1-32): id of a player
  • x (0-X): x position (in pixels)
  • y (0-X): y position (in pixels)


Set a player at a certain position (as server only).

Note: You have to define a position. This position is defined in pixels and not in tiles. Each tile has a size of 32x32 pixels!

Lua Hook Lua Hooks

Lua Command Lua Commands