OsMakeNotecard
From OpenSimulator
(Difference between revisions)
(New page: '''osMakeNotecard(key id,string contents)''' <source lang="lsl"> // //osMakeNotecard example //By Tom Earth default { touch_start(integer n) { key id = llDetectedKey(0); ...) |
|||
Line 25: | Line 25: | ||
} | } | ||
</source> | </source> | ||
+ | |||
+ | |||
+ | [[Category:OSSL]] |
Revision as of 08:49, 19 November 2010
osMakeNotecard(key id,string contents)
// //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); } }