<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=OnNPCCreated</id>
	<title>OnNPCCreated - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=OnNPCCreated"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=OnNPCCreated&amp;action=history"/>
	<updated>2026-04-29T23:42:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=OnNPCCreated&amp;diff=4439&amp;oldid=prev</id>
		<title>BlueMountains: Created page with &quot;{{Info|Event|Server|1.3.0}}  {{FuncDescription|Event called when an npc instance was created through CreateNPC.}}  {{FuncSyntax|OnNPCCreated(npc)}}  {{FuncParameters}} {{F...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=OnNPCCreated&amp;diff=4439&amp;oldid=prev"/>
		<updated>2020-10-06T21:24:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Info|Event|Server|1.3.0}}  {{FuncDescription|Event called when an npc instance was created through &lt;a href=&quot;/wiki/CreateNPC&quot; title=&quot;CreateNPC&quot;&gt;CreateNPC&lt;/a&gt;.}}  {{FuncSyntax|OnNPCCreated(npc)}}  {{FuncParameters}} {{F...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Info|Event|Server|1.3.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Event called when an npc instance was created through [[CreateNPC]].}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|OnNPCCreated(npc)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|npc|The npc which was created.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnNPCCreated(npc)&lt;br /&gt;
    print(&amp;quot;NPC &amp;quot;..npc..&amp;quot; was created&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&amp;quot;OnNPCCreated&amp;quot;, OnNPCCreated)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{NPCServerEvents}}&lt;/div&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
</feed>