Determine object type - looking for mines

After I get a list of objects in radius, how do I determine which ones are mines? I've tried obj:typeName() and obj:getTypeName() but neither seem to work
southObjs = getObjectsInRadius(0, 20000, 2500)
for _, obj in ipairs(southObjs) do
    if string.find(obj:typeName(),"Mine") then
        southMineCount = southMineCount + 1
    end
end

Comments

Sign In or Register to comment.