Commands/Lua

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

CS2D Command CS2D Console Commands

Category: all (371)

CS2D Command setpos

Categories

Parameters

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

Info

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