Say name

From Second Life Wiki
Revision as of 16:00, 18 March 2009 by Zai Lynch (talk | contribs) (script from llDetectedName (don't think this is complex enough for the lsl library...))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This will make a prim say who is touching the prim and give his/her key.

<lsl> default {

   touch_start(integer num)
   {
       integer i = 0;
       do
           llSay(0, llDetectedName(i) + " touched me. His/Her key is " + (string) llDetectedKey(i));
       while(num > ++i);
   }

}</lsl>