Garry's Mod Wiki

Revision Difference

CTakeDamageInfo:IsDamageType#518220

<function name="IsDamageType" parent="CTakeDamageInfo" type="classfunc"> <description>Returns whenever the damageinfo contains the damage type specified.</description> <realm>Shared</realm> <args> <arg name="dmgType" type="number">Damage type to test. See &lt;page&gt;DMG&lt;/page&gt;.</arg> <arg name="dmgType" type="number">Damage type to test. See <page>DMG</page>.</arg> </args> <rets> <ret name="" type="boolean">Whether this damage contains specified damage type or not</ret> </rets> </function>