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 movetile

Categories

Parameters

  • id: id of player who reached a new tile
  • x: new tile x position (tiles)
  • y: new tile y position (tiles)

Info

Triggered when a player moves from one tile to another. This either happens when the player moves normally and crosses the edge of a tile or when the player is teleported or moved by scripts.

Return Values

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

Lua Command Lua Commands