[Opensim-dev] llKey2Name.....
Dr Scofield
DrScofield at xyzzyxyzzy.net
Wed May 28 06:22:43 UTC 2008
Terry F. wrote:
> 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);
>
> }
> }
>
ok...tested that on a r4862 OpenSim, this is what i get:
[22:17] Primitive: Script running
[22:18] Primitive: Hello Everyone!
[22:18] Primitive: Hello Owner!
[22:18] Primitive: Key is: f838d45c-f496-4e84-8351-6e30e1e5ceb8
My Name is: (basic entity)
My owner is:
[22:18] Primitive: Key is: f838d45c-f496-4e84-8351-6e30e1e5ceb8
My Name is: (basic entity)
My owner is:
so, at least llOwnerSay is working :-) getting the owner key does not
seem to work neither does the name.
cheers,
dr scofield
--
dr dirk husemann ---- virtual worlds research ---- ibm zurich research lab
SL: dr scofield ---- drscofield at xyzzyxyzzy.net ---- http://xyzzyxyzzy.net/
RL: hud at zurich.ibm.com - +41 44 724 8573 - http://www.zurich.ibm.com/~hud/
More information about the Opensim-dev
mailing list