CTakeDamageInfo:GetDamageType
Description
Returns a bitflag which indicates the damage type(s) of the damage.
Consider using CTakeDamageInfo:IsDamageType instead. Value returned by this function can contain multiple damage types.
Returns
Example
All of these expressions are equivalent to each other, evaluating to true if the damageinfo contains bullet, explosive, or club damage:
Garry's Mod
Rust
Steamworks
Wiki Help