OsLoadedCreationID

From OpenSimulator

Revision as of 18:22, 5 December 2020 by Djphil (Talk | contribs)

Jump to: navigation, search
string osLoadedCreationID()
  • This function returns a string containing the UUID that a sim was originally created with.
  • It will return empty string if the region hasn't been created by oar import, or the region uses SQLite as region database.
Threat Level Low
Permissions ${OSSL|osslParcelOG}ESTATE_MANAGER,ESTATE_OWNER
Extra Delay 0 seconds
Example(s)
//
// osLoadedCreationID Script Exemple
// Author: djphil
//
 
default
{
    state_entry()
    {
        llSay(PUBLIC_CHANNEL, "Touch to see osLoadedCreationID usage.");
    }
 
    touch_start(integer number)
    {
        string CreationID = osLoadedCreationID();
 
        if (CreationID == "")
        {
            llSay(PUBLIC_CHANNEL, "The region hasn't been created by oar import, or the region uses SQLite for region database.");
        }
 
        else
        {
            llSay(PUBLIC_CHANNEL, "The first creation ID is " + CreationID);
        }
    }
}


See Also:

Personal tools
General
About This Wiki