Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 27ms

Session 0
DB GetPage 2
Generate Html 2
SaveChanges 8
Render Body 0
Render Sidebar 12