GM:OnNPCKilled

From Garry's Mod
Jump to: navigation, search
 GM:OnNPCKilled( )

Contents

Description

Called whenever an NPC is killed.

Arguments

NPC npc

The killed NPC

Arguments

Entity attacker

The NPCs attacker, the entity that gets the kill credit, for example a player or an NPC.

Arguments

Entity inflictor

Death inflictor. The entity that did the killing. Not necessarily a weapon.
Personal tools
Navigation