alive – Talk
NomDePlume (talk | contribs) (Observation on frequency of update of unit status) |
Lou Montana (talk | contribs) m (Text replacement - " <!-- Note Section [A-Z]+ -->" to "") |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
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). [[User:Nomdeplume|nomdeplume]] 12:39, 16 November 2009 (CET) | 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). [[User:Nomdeplume|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]]. [[User:Nomdeplume|nomdeplume]] 12:45, 16 November 2009 (CET) |
Latest revision as of 01:01, 6 April 2021
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)