CTakeDamageInfo.IsExplosionDamage
From GMod Wiki
Function | |
Syntax | CTakeDamageInfo:IsExplosionDamage( ) |
Description: | |
Returns whether the DamageInfo is a case of damage from explosives (blast damage?). | |
Returns: | Boolean |
In Object: | CTakeDamageInfo |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.IsExplosionDamage]CTakeDamageInfo.IsExplosionDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | Prints whether blast damage was taken. |
---|---|
Used on | |
Code | function GM:ScalePlayerDamage( ply, hitgroup, dmginfo ) MsgN( "Blast Damage: " .. tostring( dmginfo:IsExplosionDamage() ) ) end |
Output | N/A |