OsMakeNotecard

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''osMakeNotecard(key id,string contents)'''
+
{|  width="100%" style="border: thin solid black"
 +
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
 +
|- valign="top"
 +
|'''Threat Level''' || <Threat Level goes here>
  
<source lang="lsl">
+
|- valign="top"
 +
|'''Function Syntax''' || <source lang="lsl">
 +
osMakeNotecard(key id,string contents)
 +
</source>
 +
|- valign="top"
 +
|'''Example(s)||<source lang="lsl">
 
//
 
//
 
//osMakeNotecard example
 
//osMakeNotecard example
Line 25: Line 33:
 
}
 
}
 
</source>
 
</source>
 +
 +
 +
|}
 +
 +
[[Category:OSSL Functions]]
 +
 +
 +
  
  
 
[[Category:OSSL]]
 
[[Category:OSSL]]
 
[[Category:OSSL functions without threat level]]
 
[[Category:OSSL functions without threat level]]

Revision as of 10:43, 11 June 2011

OsMakeNotecard
Threat Level <Threat Level goes here>
Function Syntax
osMakeNotecard(key id,string contents)
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