GM:PostEntityTakeDamage
Description
Called when an entity receives a damage event, after passing damage filters, etc.
See GM:EntityTakeDamage if you wish to prevent damage events, or otherwise alter them.
Applying damage from this hook to the entity taking damage will lead to infinite loop/crash.
Arguments
2 CTakeDamageInfo dmginfo
Detailed information about the damage event.
When you retrieve "the attacker" the player's angle and position will be incorrect.
Issue Tracker: 7010
Issue Tracker: 7010
3 boolean wasDamageTaken
Whether the entity actually took the damage. (For example, shooting a Strider will generate this event, but it won't take bullet damage).
Example
Displays some info about damage taken event when they occur.
Garry's Mod
Rust
Steamworks
Wiki Help