OnNPCDestroyed
From Onset Developer Wiki
Description
Event called when a NPC instance was destroyed through DestroyNPC.
Syntax
OnNPCDestroyed(npc)
Parameters
- npc
The npc which was destroyed.
Example
function OnNPCDestroyed(npc)
print("NPC "..npc.." was destroyed")
end
AddEvent("OnNPCDestroyed", OnNPCDestroyed)