-- HBI_ENG.levelgen
function onTick(deltaTime) -- ONE TICK IS NOT ONE MILLISECOND.  33 ms.  Countdowns must use deltaTime, which means "actual milliseconds since last tick"
	for index, item in ipairs(itemArray) do
		if(item ~= nil) then
			typeInteger = item:getObjType()
			if(typeInteger == 22) then --22 = projector, 21 = turret, everything else documented at bottom
				if(item:getTeamIndex() == -2) then
					if(item:getHealth() <= .20) then
 						item:removeFromGame()
 					end
 				end
			end
		end
	end
end
function main()
	itemArray = bf:findAllObjects() --bf:findAllObjects(ObjType.TestItem) 
	local game = bf:getGameInfo()
	local players = game:getPlayers()
	subscribe(Event.Tick)
	for a = 1, 30 do  --I like a clean console
		logprint(" ")
	end
end