Lua Events/OnDoTileBuilding2

From PZwiki
< Lua Events
Revision as of 22:35, 13 June 2023 by Faalagorn (talk | contribs) (Faalagorn moved page Lua Events/OnDoTileBuilding2 to Lua Events/OnDoTileBuilding2: Avoid Modding: prefix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)



Event

OnDoTileBuilding2

Description

Triggered when a building tile is being set.

Parameters

  • IsoChunk The chunk in which the tile is being set.
  • Boolean Whether the tile should be rendered or not.
  • Integer The x coordinate of the tile being set.
  • Integer The y coordinate of the tile being set.
  • Integer The z coordinate of the tile being set.
  • IsoGridSquare The grid square where the tile is being set.

Examples

local function OnDoTileBuilding2(chunk, render, x, y, z, square)
	-- Your code here
end

Events.OnDoTileBuilding2.Add(OnDoTileBuilding2)

See also