Identify an enemy in Bucle + Type (code provided)

Blitz3D Forums/Blitz3D Programming/Identify an enemy in Bucle + Type (code provided)

yes, i though that but if you point another enemy how will the program remember the last enemy life or before the first enemy hit?

suppose you have 5 enemies and all enemies have 100 points of life, every hit you land is 10 point less:

you hit enemy1, 2 times so this enemy have 80 points
you hit enemy2, 9 times so this enemy has 10 points to die
you hit enemy3, 1 time so this enemy has 90 points

now if you atack the first enemy how will the system remeber the remaining life of the enemy?