OsMakeNotecard
From OpenSimulator
(Difference between revisions)
m |
m |
||
Line 2: | Line 2: | ||
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}''' | | colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}''' | ||
|- valign="top" | |- valign="top" | ||
− | |'''Threat Level''' || | + | |'''Threat Level''' || High |
|- valign="top" | |- valign="top" | ||
Line 33: | Line 33: | ||
} | } | ||
</source> | </source> | ||
− | |||
|} | |} | ||
[[Category:OSSL Functions]] | [[Category:OSSL Functions]] | ||
− |
Revision as of 12:36, 11 June 2011
OsMakeNotecard | |
Threat Level | High |
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); } } |