Commands/Lua

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

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Category: player (56)

Lua Hook flagcapture

Categories

Parameters

  • id: player id
  • team: player team
  • x: flag base x (tiles)
  • y: flag base y (tiles)

Info

on flag capturing (bringing flag to own base)

Return Values

  • 0: proceed normally
  • 1: don't capture flag

Lua Command Lua Commands