Garry's Mod Wiki

NEXTBOT:OnTraceAttack

NEXTBOT:OnTraceAttack( CTakeDamageInfo info, Vector dir, table trace )

Description

Called when a trace attack is done against the nextbot, allowing override of the damage being dealt by altering the CTakeDamageInfo.

This is called before NEXTBOT:OnInjured.

Arguments

1 CTakeDamageInfo info
The damage info
2 Vector dir
The direction the damage goes in
3 table trace
The Structures/TraceResult of the attack, containing the hitgroup.

Page Links


Special Pages


Wikis

?

Render Time: 140ms

DB GetPage 61
Generate Html 7
SaveChanges (1) 56
Render Body 0
Render Sidebar 14