Part of StarfallEx namespace
๐ External
hook.add("OnNPCKilled", "name", function(npc, attacker, inflictor) end)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Called whenever an NPC is killed.
Parameters
| Name | Type | Description |
|---|---|---|
npc | Npc | NPC that was killed |
attacker | Entity | The NPCs attacker, the entity that gets the kill credit, for example a player or an NPC. |
inflictor | Entity | Entity that did the killing |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.