06.01.2021, 13:33
Code:
function tag_max(tag)
local objects = grp.tag(tag)
local result = -math.huge
for _, object in ipairs(objects) do
result = math.max(result, object.value)
end
return result
end
max = tag_max('my_tag_name')
log(max)