OnNPCCreated

From Onset Developer Wiki
OnNPCCreated

Type: Event
Context: Server
Introduced: v1.3.0

Description

Event called when an npc instance was created through CreateNPC.

Syntax

OnNPCCreated(npc)

Parameters

  • npc
    The npc which was created.

Example

function OnNPCCreated(npc)
    print("NPC "..npc.." was created")
end
AddEvent("OnNPCCreated", OnNPCCreated)

See also