Garry's Mod Wiki


Entity:DispatchTraceAttack( CTakeDamageInfo damageInfo, table traceRes, Vector dir = traceRes.HitNormal )


Performs a trace attack.

Calling this function on the victim entity in ENTITY:OnTakeDamage can cause infinite loops.


1 CTakeDamageInfo damageInfo
The damage to apply.
2 table traceRes
Trace result to use to deal damage. See Structures/TraceResult
3 Vector dir = traceRes.HitNormal
Direction of the attack.

Page Links

Special Pages



Render Time: 31ms

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