|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
10-04-2007 02:48
I have a script that collects an Avatar's key and stores it in the prim description - I can LLGetDescription to retreave the description but how do I convert it back to a key so I can use it to send an IM the avatar?
Hope that makes sense.
|
|
Stephen Zenith
Registered User
Join date: 15 May 2006
Posts: 1,029
|
10-04-2007 02:59
From: Tarak Voss I have a script that collects an Avatar's key and stores it in the prim description - I can LLGetDescription to retreave the description but how do I convert it back to a key so I can use it to send an IM the avatar?
Hope that makes sense. key avKey = (key)llGetObjectDesc (); should do it.
|
|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
10-04-2007 03:02
Gee! that was quick! - thanks for that
|
|
Stephen Zenith
Registered User
Join date: 15 May 2006
Posts: 1,029
|
10-04-2007 03:05
From: Tarak Voss Gee! that was quick! - thanks for that No problem!
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
10-05-2007 03:10
the used technique is called TypeCasting.
string a = "1.234"; float b = (float)a;
|
|
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
|
10-05-2007 06:45
Now you have lost me - but the first way worked fine - thanks
|