Garry's Mod Wiki

CTakeDamageInfo:SetWeapon

Description

Sets the damage-inflicting weapon of the damage event.

This should be a Weapon entity, not a projectile. See also CTakeDamageInfo:SetInflictor.

Arguments

1 Entity
The damage-inflicting weapon or NULL.