GetCurrentTile

Declaration

GetCurrentTile()

Description

Returns the Tile object for the ScriptTile that is running the current script.

--Prints the position of the ScriptTile this script is running on
local currentTile = GetCurrentTile();

Print("X: " .. currentTile.Position.x .. " Y: " .. currentTile.Position.y);