OsFormatString

From OpenSimulator
Revision as of 20:47, 17 January 2010 by imported>Tom Aeon (New page: '''string osFormatString(string format,list params)''' <source lang="lsl"> // //osFormatString example, by Tom Earth. // default { state_entry() { string to_format = "My n...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

string osFormatString(string format,list params)

//
//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)); 
    }
}