alive – Talk

From Bohemia Interactive Community
Revision as of 13:39, 16 November 2009 by NomDePlume (talk | contribs) (Observation on frequency of update of unit status)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I think "alive unit" returns true if the group's leader thinks the unit is alive. It can take a while for them to notice, especially if you kill off a whole group at once. Similarly, the list of units in a group isn't updated until the leader acknowledges the unit is dead.

It looks like "damage unit" returns the actual amount of damage it's received, so if you want to know whether a unit is actually alive or not, you can use if (damage unit < 1.0). nomdeplume 12:39, 16 November 2009 (CET)