ENTITY:OnTraceAttack
Recently Added
This was recently added in version (2026.07.03). It might only be available on the Dev Branch right now.
Description
Called when a trace attack is done against the entity, allowing override of the damage being dealt by altering the CTakeDamageInfo.
This is called before ENTITY:OnTakeDamage.
This hook is only called for
ai, nextbot and anim type entities.
Garry's Mod
Rust
Steamworks
Wiki Help