GetDamage

Category: Objects / Status
Since engine version: 4.9.1.0 GWE

Description

Determines the damage level of an object.

Syntax

int GetDamage (object pObj);

Parameter

pObj:
[opt] Object of which to determine the damage level. Can be 0 in local calls.

Example

if(GetDamage() > 100) Split2Components();
Decomposes the calling object if it has taken too much damage.
See also: DoDamage, DoEnergy
Sven2, Mai 2002