OnNPCCreated
From Onset Developer Wiki
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)