GE Lua Documentation

Press F to search!

resetBoundaryObjects

Definition


-- @/lua/ge/extensions/gameplay/crawl/boundary.lua:157

local function resetBoundaryObjects()
  for objectId, objectInfo in pairs(boundaryObjects) do
    local obj = scenetree.findObjectById(objectId)
    if obj then
      obj.hidden = true
      obj:setScale(vec3(minScale, minScale, minScale))
      obj:setField('instanceColor', 0, '1 1 1 0')
    end
  end

  boundaryObjects = {}
  log('D', logTag, 'Reset boundary objects tracking')
end

Callers

@/lua/ge/extensions/gameplay/crawl/boundary.lua
  -- Reset boundary objects tracking
  resetBoundaryObjects()

  resetBoundaryObjects()
end