[Opensim-dev] llKey2Name.....

Terry F. terry at usfastweb.com
Tue May 27 20:59:27 UTC 2008


Hello Destiny,

Thanks for your reply... I made a simple script just to test some functions.
Everything works as expected except llOwnerSay does not work, llKey2Name 
returns "basic entity" and llDetectedOwner returns nothing.....here it is.

default
{
    state_entry()
    {
        llSetText("Script Test", <1,0,0>, 1.0);
        llSay(0,"Hello Everyone!");
        llOwnerSay("Hello Owner!");
    }
 
    touch_start(integer total_number)
        {
       
        llSetText("Script Test", <0,0,1>, 1.0);
       
        key myowner = llDetectedOwner(0);
       
        key mykey = llDetectedKey(0);
       
        string myname = llKey2Name(mykey);
       
        llSay(0,"Key is: " + (string)mykey + "\nMy Name is: " + 
(string)myname + "\nMy owner is: " +(string)myowner);
        
        }
}

Destiny Niles wrote:
> How are you using the function?
> It only works for things within the same sim.
>
> On Tue, May 27, 2008 at 10:13 AM, Terry F. <terry at usfastweb.com 
> <mailto:terry at usfastweb.com>> wrote:
>
>     Hi all,
>
>     I'm trying to use the LSL function llKey2Name but it is only returning
>     "basic entity" instead of the actual name.
>     On the site it says this feature has been implemented, is there a
>     "trick" to using this function?
>
>     Thanks,
>     -Terry
>     _______________________________________________
>     Opensim-dev mailing list
>     Opensim-dev at lists.berlios.de <mailto:Opensim-dev at lists.berlios.de>
>     https://lists.berlios.de/mailman/listinfo/opensim-dev
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>   
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG. 
> Version: 8.0.100 / Virus Database: 269.24.1/1468 - Release Date: 5/26/2008 3:23 PM
>   



More information about the Opensim-dev mailing list