function FindMimir()
  local mimirReference
  local objArray = game.World.FindGameObjectsByMarker("Mimir")
  if 1 < #objArray then
    error("Warning: there are multiple mimirs, getting reference will be unpredictable.")
    return mimirReference
  else
    for _, obj in ipairs(objArray) do
      if obj:GetCreature() ~= nil and obj:GetCreature():GetAI() ~= nil then
        mimirReference = obj:GetCreature():GetAI()
      end
    end
    return mimirReference
  end
end
function HideRealMimirHeadRope()
  local mimirHead
  for table in FindMimir():IterateActiveWeapons() do
    if table.Weapon:GetName() == "mimirhead00" then
      mimirHead = table.Weapon
    end
  end
  local ropeIndex = mimirHead:GetJointIndex("mimir00_Ropes")
  mimirHead:HideJoint(ropeIndex)
end
