|
Jeanette Hailey
Diva Designs
Join date: 11 Mar 2005
Posts: 185
|
12-21-2005 14:22
Regarding the llKey2Name() fuction. I want to have an object return the name of the person or group that it is on. Here is the line of code i'm using:
llWhisper(0, "Parcel Owner: " +(string)llKey2Name(llGetLandOwnerAt(llGetPos())));
If it is over land that is owned by an individual it works just fine. If it is over group land, it returns a null. If you take out the llKey2Name it actually gives you a key value, which is why I stuck it in there to begin with. Do groups not have a name equivalent associated with their key? Is there another way to get the name of the group that owns land?
Thanksin advance for any help!
_____________________
.-~+*Diva*+~-. Sprocket Island: http://slurl.com/secondlife/Sprocket/68/127/22
|
|
Rickard Roentgen
Renaissance Punk
Join date: 4 Apr 2004
Posts: 1,869
|
12-21-2005 14:24
key2name just doesn't work on groups keys, sorry.
|
|
Kayla Stonecutter
Scripting Oncalupen
Join date: 9 Sep 2005
Posts: 224
|
12-21-2005 18:12
Just a quick aside, llKey2Name() will only work if the avatar is in the same sim.
|
|
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
|
12-21-2005 20:59
I heard a while back that Ulrika is working on a Group2Key database to accompany her Name2Key database , so keep an eye out for it.  Atm, I have a rather large index of group key - name pairs. IM me in world if you would like a copy. ~Cid
|