OsFormatString

From OpenSimulator

Revision as of 21:32, 1 July 2011 by MakoBot (Talk | contribs)

Jump to: navigation, search
string osFormatString(string format,list params)
No descriptions provided
Threat Level Low
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
//
//osFormatString() example, by Tom Earth.
//
default
{
    state_entry()
    {
        string to_format = "My name is {0}. My owner is {1}. I am in the sim {2}";
        list format = [llGetObjectName(),llKey2Name(llGetOwner()),llGetRegionName()];
        llOwnerSay(osFormatString(to_format, format)); 
    }
}
Personal tools
General
About This Wiki