Garry's Mod Wiki

Garry's Mod Wiki

  boolean GM:PlayerTraceAttack( Player ply, CTakeDamageInfo dmginfo, Vector dir, table trace )

Description

Called when a player has been hit by a trace and damaged (such as from a bullet). Returning true overrides the damage handling and prevents GM:ScalePlayerDamage from being called.

Arguments

1 Player ply
The player that has been hit
2 CTakeDamageInfo dmginfo
The damage info of the bullet
3 Vector dir
Normalized vector direction of the bullet's path
4 table with TraceResult structure trace
The trace of the bullet's path, see TraceResult structure

Returns

1 boolean
Override engine handling

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...