OsNpcSetProfileAbout

From OpenSimulator
Revision as of 14:11, 15 April 2017 by imported>Djphil (Created page with "{{osslfunc |threat_level=Low |function_syntax=osNpcSetProfileAbout(LSL_Key npc, string about) |ossl_example=<source lang="lsl"> // // osNpcSetProfileImageScript Exemple // ke...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
osNpcSetProfileAbout(LSL_Key npc, string about)
Set about in created NPC's profile.

See also OsNpcSetProfileImage.

Threat Level Low
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
//
// osNpcSetProfileImageScript Exemple
//

key npc = NULL_KEY;
string about = "I'm your Clone";

default
{
    touch_start(integer num)
    {
        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);
    }
}