Garry's Mod Wiki

GM:PostEntityTakeDamage

  GM:PostEntityTakeDamage( Entity ent, CTakeDamageInfo dmg, boolean took )

Description

Called when an entity receives a damage event, after passing damage filters, etc.

Applying damage from this hook to the entity taking damage will lead to infinite loop/crash.

Arguments

1 Entity ent
The entity that took the damage.
3 boolean took
Whether the entity actually took the damage. (For example, shooting a Strider will generate this event, but it won't take bullet damage).