I've tried this:
But creature:getName() is nil.
print(tileCreatures) returns table when someone is standing on that tile, so the only problem is to get names from this table one by one
Code:
local tile = Tile(pos)
local tileCreatures = tile:getCreatures()
--print(tileCreatures)
if tileCreatures then
for i = 1, #tileCreatures do
local creature = Creature(tileCreatures)
print(creature:getName())
end
end
But creature:getName() is nil.
print(tileCreatures) returns table when someone is standing on that tile, so the only problem is to get names from this table one by one