Here is an idea how it can work. My first shot at pseudo-code:
Assumption:TC=Tank commander
Assumption:Wounded commanders button up.
1)If TC is buttonned, go to step 5.
2)If TC is wounded,go to step 5.
3)If TC is healthy,go to step 6.
4)TC is dead, go to step 7.
5)TC is invisible, go to step 1.
6)TC is visible and healthy, go to step 1.
7)TC is visible and slumped.
[This message has been edited by iggi (edited 02-07-2000).]