Prim Key ID
|
santi Lumiere
Registered User
Join date: 27 May 2004
Posts: 6
|
07-09-2004 15:20
I'd love some help. What is the simplest way to get the Key ID of a prim? Is there a command I can issue in the 'chat' box or is there a simple LSL script?
Thanks, in advacne, for your guidance.
|
Jim Bunderfeld
The Coder
Join date: 1 Mar 2004
Posts: 161
|
07-09-2004 15:22
default { touch_start(integer touched) { llSay(0,"My key is: "+(string)llGetKey()); } }
_____________________
| - Linux Users - | #SecondLifeLinux on IRC.EnterTheGame.com
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
07-09-2004 15:24
I think Jim meant: default { state_entry() { llSay(0,llGetKey()); } }
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
07-09-2004 15:49
From: someone Originally posted by Catherine Omega I think Jim meant:
default { state_entry() { llSay(0,llGetKey()); } }
:teases cat: And you say that explicit typecasting is better then relying on an implicit like that  llSay accepts a string, so its best to cast the return value of llGetKey to a string before passing it to llSay. Ex. llSay(0, (string) llGetKey());
|
Jim Bunderfeld
The Coder
Join date: 1 Mar 2004
Posts: 161
|
07-09-2004 16:11
Whats wrong with mine 
_____________________
| - Linux Users - | #SecondLifeLinux on IRC.EnterTheGame.com
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
07-09-2004 16:16
Hmm, that's not what it looked like when I responded, Jim. Weird.
And yes Chris, explicit typecasting IS better, but in this specific example, it's not necessary, so THERE.
|
Eggy Lippmann
Wiktator
Join date: 1 May 2003
Posts: 7,939
|
07-09-2004 19:35
you suck cat 
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
07-10-2004 08:43
Yeah? Well... well... YOUR FACE sucks!
|
santi Lumiere
Registered User
Join date: 27 May 2004
Posts: 6
|
07-10-2004 17:42
thanks to everyone for your quick help... I was able to get the key for the prim without problem...
...and Eggy, what a way to start an conversation with Cat!... not polite!...
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
07-10-2004 18:13
Yeah, Eggy! I'm reporting you! 
|