Difference between revisions of "Say name"

From Second Life Wiki
Jump to navigation Jump to search
(New page: This will make a prim say who is touching the prim. Please help setting this script up.)
 
(script from llDetectedName (don't think this is complex enough for the lsl library...))
 
Line 1: Line 1:
This will make a prim say who is touching the prim.
This will make a [[prim]] say who is touching the prim and give his/her [[key]].
Please help setting this script up.
 
<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>

Latest revision as of 16:00, 18 March 2009

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>