G4BB3R
New Member
- Joined
- Jul 23, 2010
- Messages
- 80
- Reaction score
- 4
Hello.
I am trying to loop through all items in the ground (except floor)
But using the script gives some console errors because it loop at non existent items.
# Question 2: What function I can use instead of:
getTileItemById(pos, id)
If I am searching for any item that is in a table.
Example:
Thanks!
I am trying to loop through all items in the ground (except floor)
But using the script gives some console errors because it loop at non existent items.
Code:
for stack = 1, 255 do
if getThingFromPos({x = a.x, y = a.y, z = a.z, stackpos = stack}).uid > 0 then
--[...]
end
end
# Question 2: What function I can use instead of:
getTileItemById(pos, id)
If I am searching for any item that is in a table.
Example:
getTileItemById({x = 1232, y = 2322, z = 8}, {3031, 3032, 3033, 8877})
Thanks!
Last edited: