Objects in the map||doc136121

September 20, 2022

Format

 Map.objects 
  • The class to which the attribute belongs:Map

Description

A table composed of all objects located in the map, with the object ID as the key and the object instance as the value.


Value Returned

type Description
table object list


Code Samples

Print the object id and instance in the map

local map = World.CurWorld.defaultMap
for id, object in pairs(map.objects) do
    print(id,object)
end