Garry's Mod Wiki

Garry's Mod Wiki

  CTakeDamageInfo:SetInflictor( Entity inflictor )

Description

Sets the inflictor of the damage for example a weapon.

For hitscan/bullet weapons this should the weapon.

For projectile (rocket launchers, grenades, etc) weapons this should be the projectile and CTakeDamageInfo:SetWeapon should be the weapon.

Arguments

1 Entity inflictor
The new inflictor.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...