function MonsterManager.createInterest(J,q,Y)local d={position=J,weight=q}table.insert(interests,d)if Y then delay(Y,function()interests=TableUtils.without(interests,d)MonsterManager.updateMonsterInterests()end)end MonsterManager.updateMonsterInterests()end

function MonsterManager.createInterest(position, weight, timeout)
	local entry = {position = position, weight = weight}

	table.insert(interests, entry)

	if timeout then
		delay(
			timeout,
			function()
				interests = TableUtils.without(interests, entry)

				MonsterManager.updateMonsterInterests()
			end
		)
	end

	MonsterManager.updateMonsterInterests()
end
