Garry's Mod Wiki

CTakeDamageInfo:GetInflictor

CTakeDamageInfo:GetInflictor

  Entity CTakeDamageInfo:GetInflictor()

Description

Returns the inflictor of the damage. This is not necessarily a weapon.

For hitscan weapons this is the weapon.

For projectile weapons this is the projectile.

For a more reliable method of getting the weapon that damaged an entity, use GetAttacker with GetActiveWeapon.

Returns

1 Entity
The inflictor

Special Pages


Wikis

?

Render Time: 69ms

DB GetPage 52
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 6