alive – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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)

Returns 'BOOL' if the object does'nt exists. For example in multiplayer when a object is removed alive will return 'BOOL' if a new player join after the object were destroyed.

--

If you're determining whether a unit is still viable, you might also want to look at canMove, canFire and canStand. nomdeplume 12:45, 16 November 2009 (CET)