OsMakeNotecard

From OpenSimulator

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

Revision as of 16:54, 12 June 2011

osMakeNotecard(key id,string 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