OsNpcSetProfileImage
From OpenSimulator
(Difference between revisions)
(Created page with "{{osslfunc |threat_level=Low |function_syntax=osNpcSetProfileImage(LSL_Key npc, string image) |ossl_example=<source lang="lsl"> // // osNpcSetProfileImage Exemple // key npc ...") |
|||
Line 12: | Line 12: | ||
default | default | ||
{ | { | ||
− | touch_start(integer | + | touch_start(integer number) |
{ | { | ||
− | if(npc == NULL_KEY) | + | if (npc == NULL_KEY) |
{ | { | ||
osOwnerSaveAppearance("MyClone"); | osOwnerSaveAppearance("MyClone"); |
Revision as of 06:11, 15 April 2017
osNpcSetProfileImage(LSL_Key npc, string image)
| |
Set image in created NPC's profile.
One can use UUID of the texture or name of texture included in prim's inventory. See also OsNpcSetProfileAbout. | |
Threat Level | Low |
Permissions | No permissions specified |
Extra Delay | No function delay specified |
Example(s) | |
// // osNpcSetProfileImage Exemple // key npc = NULL_KEY; string image = "My Photo"; 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"); osNpcSetProfileImage(npc, image); } } |