OsNpcSetProfileAbout
From OpenSimulator
(Difference between revisions)
(Created page with "{{osslfunc |threat_level=Low |function_syntax=osNpcSetProfileAbout(LSL_Key npc, string about) |ossl_example=<source lang="lsl"> // // osNpcSetProfileImageScript Exemple // ke...") |
|||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
|threat_level=Low | |threat_level=Low | ||
− | |function_syntax=osNpcSetProfileAbout( | + | |permissions=${XEngine|osslNPC} |
+ | |delay=0 | ||
+ | |function_syntax=osNpcSetProfileAbout(key npc, string about) | ||
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
// | // | ||
− | // osNpcSetProfileImageScript | + | // osNpcSetProfileImageScript Example |
// | // | ||
Line 12: | Line 14: | ||
default | default | ||
{ | { | ||
− | touch_start(integer | + | touch_start(integer number) |
{ | { | ||
− | if(npc == NULL_KEY) | + | if (npc == NULL_KEY) |
{ | { | ||
osOwnerSaveAppearance("MyClone"); | osOwnerSaveAppearance("MyClone"); | ||
Line 39: | Line 41: | ||
See also [[OsNpcSetProfileImage]]. | See also [[OsNpcSetProfileImage]]. | ||
− | | | + | |additional_info=This function was added in 0.9.0.1}} |
− | }} | + |
Revision as of 10:02, 7 December 2018
osNpcSetProfileAbout(key npc, string about)
| |
Set about in created NPC's profile.
See also OsNpcSetProfileImage. | |
Threat Level | Low |
Permissions | ${XEngine|osslNPC} |
Extra Delay | 0 seconds |
Example(s) | |
// // osNpcSetProfileImageScript Example // key npc = NULL_KEY; string about = "I'm your Clone"; default { touch_start(integer number) { if (npc == NULL_KEY) { osOwnerSaveAppearance("MyClone"); llSetTimerEvent(2.0); } else { osNpcRemove(npc); npc = NULL_KEY; llRemoveInventory("MyClone"); } } timer() { llSetTimerEvent(0.0); npc = osNpcCreate("John", "Smith", llGetPos() + <0.0, 0.0, 2.0>, "MyClone"); osNpcSetProfileAbout(npc, about); } } | |
Notes | |
This function was added in 0.9.0.1 |