OnNPCDestroyed

From Onset Developer Wiki
OnNPCDestroyed

Type: Event
Context: Server
Introduced: v1.2.2

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)

See also