Thanks a lot, and how'd be if I want to enable a teleporter after putting items on a tile
i think the easiest way would be
local frompos = { x = x, y = x, z = x}
local topos = { x = x, y = x, z = x}
local tp = getTileItemById(topos, 1387)
if itemPos.itemid == 2400 then
doCreateTp(xxx, fromPos, toPos)
end
return 1
but I want the tp to be there already
like make a condition for entering the tp...
i think the easiest way would be
local frompos = { x = x, y = x, z = x}
local topos = { x = x, y = x, z = x}
local tp = getTileItemById(topos, 1387)
if itemPos.itemid == 2400 then
doCreateTp(xxx, fromPos, toPos)
end
return 1
but I want the tp to be there already
like make a condition for entering the tp...