Garry's Mod Wiki

CTakeDamageInfo:SetAttacker

  CTakeDamageInfo:SetAttacker( Entity ent )

Description

Sets the attacker ( character who originated the attack ) of the damage, for example a player or an NPC.

Arguments

1 Entity ent
The entity to be set as the attacker.