
my pawns process a list of 10 possible enemies on a map.
for example.
foe1 - foe10
I have a problem were pawns attack dead foes, this is a problem that breaks the feel of my game entirly. what i need is one of two solutions.
Either way i need the pawn to check the current targets health.
My problem is that i dont know how to do that part. can someone help me?
solution1; if pawn is visible and health is > 0 then attack. else goto either idle or alert for further serching.
solution2; check current targets health, if current targets health = 0 then take its name off the list of enemies alive.
how would i do a list of name to check that can have name taken off of it?
i have never done that before but it would be usefull.
thanks,
fps