OsNpcCreate

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(minimal fix of the sample script)
Line 9: Line 9:
 
  default
 
  default
 
  {
 
  {
     touch_start()
+
     touch_start(integer number)
 
     {
 
     {
 
       key npc;  
 
       key npc;  

Revision as of 04:54, 29 June 2011

key osNpcCreate(string firstname, string lastname, vector position, key cloneFrom);
No descriptions provided
Threat Level High
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
default
 {
    touch_start(integer number)
    {
       key npc; 
       npc = osNpcCreate("Jane", "Bot", <100,100, 40>, "c40457e2-6e89-4bca-ab4e-d781db63616a");     
    }
 }
Notes
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