Commands/Lua

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

CS2D Command CS2D Console Commands

Lua Hook Lua Hooks

Category: all (73)

Lua Hook objectkill

Categories

Parameters

  • id: dynamic object id
  • player: killer player id (0 if not killed by player)

Info

When a dynamic object (of any kind) is being killed/destroyed.

Return Values

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

Lua Command Lua Commands