How to make a large script with position and not aid or uid?
something like:
And the same with UID and AID, I tried but don't work with aid or uid.
Thanks for the help!
something like:
Lua:
local ispos = {
[Position(32479, 31904, 2)] = Position(32478, 31908, 7),
[Position(32479, 32905, 2)] = Position(32478, 31908, 7)
}
-------------------------------- TELEPORT FOR ITEMS ----------------------------------------
local normalTeleportsItem = MoveEvent()
function normalTeleportsItem.onAddItem(moveitem, tileitem, position)
local config = ispos[position]
moveitem:moveTo(config)
position:sendMagicEffect(CONST_ME_TELEPORT)
return true
end
for i, v in pairs(ispos) do
normalTeleportsItem:position(i)
end
normalTeleportsItem:register()
And the same with UID and AID, I tried but don't work with aid or uid.
Thanks for the help!