Who

From Second Life Wiki
Revision as of 15:36, 6 January 2013 by Ackley Bing (talk | contribs)
Jump to navigation Jump to search

A simple 'llKey2Name' user-function supporting Viewer URI Name Space.

Function

<lsl> string Who(key id) {

   return "secondlife:///app/agent/" + (string)id + "/inspect";

} </lsl>

Example

<lsl> string Who(key id) {

   return "secondlife:///app/agent/" + (string)id + "/inspect";

}

default {

   touch_start(integer n)
   {
       llSay("Touched by " + Who(llDetectedKey(n)) + ".");
   }

} </lsl>