OsMakeNotecard

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m (some format conversions)
m (some syntax modification (may be major or minor))
Line 1: Line 1:
 
{{osslfunc
 
{{osslfunc
 
|threat_level=High
 
|threat_level=High
|function_syntax=osMakeNotecard(key id,string contents)
+
|function_syntax=void osMakeNotecard(string notecardName, list contents)
 
|ossl_example=<source lang="lsl">
 
|ossl_example=<source lang="lsl">
 
//
 
//

Revision as of 03:32, 2 July 2011

void osMakeNotecard(string notecardName, list contents)
No descriptions provided
Threat Level High
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
//
//osMakeNotecard example
//By Tom Earth
 
default
{
    touch_start(integer n)
    {
        key id = llDetectedKey(0);
        string name = llKey2Name(id);
        string contents; //The variable we are going to use for the contents of the notecard.
        contents += "Name: "+name+"\n";
        contents += "Key: "+(string)id+"\n";
        contents += "Pos: "+(string)llDetectedPos(0)+"\n";
        contents += "Rotation: "+(string)llDetectedRot(0)+"\n";
 
        osMakeNotecard(name,contents); //Makes the notecard.
 
        llGiveInventory(id,name); //Gives the notecard to the person.
        llRemoveInventory(name);
    }
}
Personal tools
General
About This Wiki