OsNpcCreate
From OpenSimulator
(Difference between revisions)
Karen Palen (Talk | contribs) m (Clarify username parameters per coding source) |
|||
Line 1: | Line 1: | ||
'''Function Syntax:''' osNpcCreate(string firstname, string lastname, vector position, key cloneFrom);<br>'''Returns:''' key | '''Function Syntax:''' osNpcCreate(string firstname, string lastname, vector position, key cloneFrom);<br>'''Returns:''' key | ||
− | Example | + | This function creates a NPC(Non Player Character) clone from an already existing avatar UUID Key. |
+ | |||
+ | This function is Rated High on the OS Threat Level. For more on Threat Levels in Opensimulator: http://opensimulator.org/wiki/Threat_level | ||
+ | |||
+ | '''Example Usage:''' | ||
+ | <source lang="lsl"> | ||
+ | default | ||
+ | { | ||
+ | touch_start() | ||
+ | { | ||
+ | key npc; | ||
+ | npc = osNpcCreate("Jane", "Bot", <100,100, 40>, "c40457e2-6e89-4bca-ab4e-d781db63616a"); | ||
+ | } | ||
+ | } | ||
+ | </source> |
Revision as of 02:15, 28 August 2010
Function Syntax: osNpcCreate(string firstname, string lastname, vector position, key cloneFrom);
Returns: key
This function creates a NPC(Non Player Character) clone from an already existing avatar UUID Key.
This function is Rated High on the OS Threat Level. For more on Threat Levels in Opensimulator: http://opensimulator.org/wiki/Threat_level
Example Usage:
default { touch_start() { key npc; npc = osNpcCreate("Jane", "Bot", <100,100, 40>, "c40457e2-6e89-4bca-ab4e-d781db63616a"); } }