OsNpcCreate
From OpenSimulator
(Difference between revisions)
| Line 1: | Line 1: | ||
| − | ''' | + | {| width="100%" style="border: thin solid black" |
| − | + | | colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}''' | |
| + | |- valign="top" | ||
| + | |'''Threat Level''' || High | ||
| − | + | |- valign="top" | |
| − | + | |'''Function Syntax''' || <source lang="lsl"> | |
| − | + | key osNpcCreate(string firstname, string lastname, vector position, key cloneFrom); | |
| − | + | </source> | |
| − | ''' | + | |- valign="top" |
| − | + | |'''Example(s)||<source lang="lsl"> | |
| − | '''Example | + | |
| − | <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 ***