Jump to navigation Jump to search
- damage object
- object: Object
- Return Value:
- Number - The returned number in range (healthy) 0..1 (dead).
- Example 1:
- Example 2:
- Example 3:
- See also:
- setDamage setHit getHit getHitIndex setHitIndex getHitPointDamage setHitPointDamage "HandleDamage" Event Handler
- Posted on Feb 13, 2015 - 20:20 (UTC)
- The returned value depends on the couple target/ammo fired. This value has no correlation with the sum of all hitpoints damage status and the effective status of the object. Firing bullets on cars often lead to weird results. For example: damage returns zero while a Hunter is fired at will with an .50 HMG! Hunter can be almost destroyed with zero damage for this function. If you script, use instead the getHitPointDamage command.