Garry's Mod Wiki

GM:OnNPCKilled

GM:OnNPCKilled

  GM:OnNPCKilled( NPC npc, Entity attacker, Entity inflictor )

Description

Called whenever an NPC is killed.

Arguments

1 NPC npc
The killed NPC
2 Entity attacker
The NPCs attacker, the entity that gets the kill credit, for example a player or an NPC.
3 Entity inflictor
Death inflictor. The entity that did the killing. Not necessarily a weapon.

Special Pages


Wikis

?

Render Time: 43ms

DB GetPage 9
Generate Html 4
SaveChanges (1) 21
Render Body 0
Render Sidebar 7