CTakeDamageInfo.IsExplosionDamage

From GMod Wiki

Revision as of 18:43, 26 February 2011 by nüke (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax CTakeDamageInfo:IsExplosionDamage( )
Description:
Returns whether the DamageInfo is a case of damage from explosives (blast damage?).
Returns: Boolean
In Object: CTakeDamageInfo
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.IsExplosionDamage]CTakeDamageInfo.IsExplosionDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionPrints whether blast damage was taken.
Used onNewerServer.png
Code
function GM:ScalePlayerDamage( ply, hitgroup, dmginfo )
	MsgN( "Blast Damage: " .. tostring( dmginfo:IsExplosionDamage() ) )
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox