for (int i = 0; i < maxEnemyCount; i++)
{
if (BitConverter.ToInt32(ReadMemory(process, address + (space_between_every_health_address * i), 4), 0) > 0) //check if health is bigger than 0
{
//do some code (like set the current enemy address health to 1
}
}