NEXTBOT/OnTraceAttack

From Garry's Mod
Jump to: navigation, search
 NEXTBOT:OnTraceAttack( )

Contents

Description

Next Update Change

This feature is only available in the next update.
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

CTakeDamageInfo info

The damage info

Arguments

Vector dir

The direction the damage goes in

Arguments

table trace

The TraceResult structure of the attack, containing the hitgroup.
Personal tools
Navigation