OsNpcSetProfileAbout

From OpenSimulator

Revision as of 20:05, 25 September 2019 by Ubit (Talk | contribs)

Jump to: navigation, search
osNpcSetProfileAbout(key npc, string about)
Set about in created NPC's profile.

See also OsNpcSetProfileImage.

Threat Level Low
Permissions ${OSSL|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
Personal tools
General
About This Wiki