Counter-Strike 2DGet it now!

Code Command Reference

You can enter CS2D script commands in the console, save them in cfg-files or bind them to keys. CS2D script commands are no Lua commands but they can still be executed in Lua scripts by using the Lua parse-function!

Lua Lua Reference

Lua scripting (server-sided) allows server hosters and mappers to modify the game and to add new elements.

Lua Hooks


Category: player (39)


usebutton

Categories

Player

Parameters

  • id: player id
  • x: button x (tiles)
  • y: button y (tiles)

Info

on using a button

Return Values

none - related action(s) [if there are any] performed by CS2D cannot be altered/omitted

Lua Commands