Commands/Lua

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

CS2D Command CS2D Console Commands

Category: server (201)

CS2D Command damagetile

Categories

Parameters

  • x (0-X): map x position (in tiles)
  • y (0-X): map y position (in tiles)
  • damage (X): amount of damage

Info

Causes damage to a specific tile. The damage only affects static objects on that tile (env_breakable entities and buildings).

Other objects (e.g. players or NPCs) are NOT affected.

Works as server only.

Lua Hook Lua Hooks

Lua Command Lua Commands