OK I need a command that checks whether a unit exists or not. I have
!(alive tank1) && !(alive tank2) && !(alive tank2) && ... etc
as the trigger for the end of my mission. But tanks 1,2 and 3 are all on a 50% probability of spawning.
If tank1 doesn't spawn to begin with then
!(alive tank1)
never gets activated because tank1 isn't actually dead, it was just never there from the start.
So basically I'd like the function for
(!(alive tank1) or !([i]exists?/spawned?/null?[/i] tank1))
Does that make sense?
Either that or I was thinking I could set a up variable and +1 to it for each tank that spawns, then -1 for every tank that is destroyed, and have the trigger listen for when the variable == 0. But I'm really not sure how to approach that either. Any tips gratefully received.