Lua Events/OnDoTileBuilding

From PZwiki



Event

OBSOLETE
OnDoTileBuilding

Description

Triggered when a building tile is being set.

Parameters

  • Boolean True when the ghost image of what is to be build should be drawn. False when the building should actually be started/done.
  • Integer The x coordinate of the square where to draw the building tile.
  • Integer The y coordinate of the square where to draw the building tile.
  • Integer The z coordinate of the square where to draw the building tile.
  • IsoGridSquare The square where to draw the building tile.
  • InventoryItem The inventory item on the cursor to define what has to be built.

Examples

local function OnDoTileBuilding(isRender, x, y, z, square, inventoryItem)
	-- Your code here
end

Events.OnDoTileBuilding.Add(OnDoTileBuilding)

See also