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

CS2D Command CS2D Console Commands

Category: all (370)

CS2D Command alias



  • alias (text): name for your alias
  • script (text): script you want to execute with this alias


Create an alias. An alias can be used like a normal script command. It executes one or more other commands (it's like a shortcut).

For example:
alias "test" "echo test!; echo 123"

This creates the new alias/command "test" which prints the lines "test!" and "123" in your console.

Note: CS2D does NOT automatically save your aliases when you enter it in the console. All aliases will be removed as soon as you quit CS2D.

Note: If you want to keep your aliases put them in a file like sys/autoexec.cfg!

Lua Hook Lua Hooks

Lua Command Lua Commands