OsNpcCreate

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''Function Syntax:''' <source lang="lsl">osNpcCreate(string firstname, string lastname, vector position, key cloneFrom);
+
{|  width="100%" style="border: thin solid black"
</source><br>'''Returns:'''&nbsp; key
+
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 +
|- valign="top"
 +
|'''Threat Level''' || High
  
This function creates a NPC(Non Player Character) clone from an already existing avatar UUID Key.
+
|- valign="top"
 
+
|'''Function Syntax''' || <source lang="lsl">
This function is Rated High on the OS Threat Level. For more on Threat Levels in Opensimulator: see [[Threat_level]].
+
key osNpcCreate(string firstname, string lastname, vector position, key cloneFrom);
 
+
</source>
'''*** This function is broken in OpenSimulator 0.7x ***'''
+
|- valign="top"
 
+
|'''Example(s)||<source lang="lsl">
'''Example Usage:'''
+
<source lang="lsl">
+
 
  default
 
  default
 
  {
 
  {
Line 21: Line 21:
  
  
[[Category:OSSL]]
+
|}
 +
 
 +
This function creates a NPC(Non Player Character) clone from an already existing avatar UUID Key.
 +
 
 +
'''*** This function is broken in OpenSimulator 0.7x ***'''
 +
 
 +
[[Category:OSSL Functions]]

Revision as of 09:58, 11 June 2011

OsNpcCreate
Threat Level High
Function Syntax
key osNpcCreate(string firstname, string lastname, vector position, key cloneFrom);
Example(s)
default
 {
    touch_start()
    {
       key npc; 
       npc = osNpcCreate("Jane", "Bot", <100,100, 40>, "c40457e2-6e89-4bca-ab4e-d781db63616a");     
    }
 }


This function creates a NPC(Non Player Character) clone from an already existing avatar UUID Key.

*** This function is broken in OpenSimulator 0.7x ***

Personal tools
General
About This Wiki