Jump to navigation Jump to search
bool IsZeroDamage ()
Returns true if the actor's damage is zero, otherwise it returns false. For damage values passed as an expression, the function always returns false, regardless of the expression's result. Consider the following cases:
Damage 0 // Returns true; damage is zero. Damage 20 // Returns false; damage is non-zero. Damage (0) // Returns false; this is an expression, even though the result is zero. Damage (Random(5, 15)) // Returns false; this is an expression. DamageFunction 0; // Returns false; this is an expression, even though the result is zero. DamageFunction Random(1, 10) + 3; // Returns false; this is an expression.
|Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please. This will make it easier to understand for future authors seeking assistance. Your contributions are greatly appreciated.|