OnNPCCreated

From Onset Developer Wiki
Revision as of 21:24, 6 October 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server|1.3.0}} {{FuncDescription|Event called when an npc instance was created through CreateNPC.}} {{FuncSyntax|OnNPCCreated(npc)}} {{FuncParameters}} {{F...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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