Rezzed Object Getting Information
|
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
12-20-2009 16:30
I'm making something that rezzes an object and the object that rezzed needs to get a key from the object that rezzed it.
Is there anyway to do it?
I can't use the integer paramaters that's passed and the object rezzed need to know the command is specific to it, rarther than other instances that may be around?
Is there a way to get like KeyWhoRezzedMe?
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-20-2009 16:45
the simplest way is to have the rezzor send the child a message, use the start parameter to authenticate the communication if needed.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
12-20-2009 16:46
The rezzer gets the unique key for the object it rezzed using object_rez. http://lslwiki.net/lslwiki/wakka.php?wakka=object_rezUsing that, you can have the rezzer llSay it's key to the rezzed objects specific key.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
12-20-2009 17:33
Would the unique key go just to the script that rezzed it? or the whole prim?
|
Jack Abraham
Lantern By Day
Join date: 11 Apr 2008
Posts: 113
|
12-20-2009 17:38
The object, Nyx.
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
12-20-2009 17:47
I would be interested in knowing a use case scenario where you would need more then one rezzer script in a prim?
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
12-20-2009 18:10
The script that rezzes the object is a close system, non open source, so I need to do it in a script of mine.
|
Soen Eber
Registered User
Join date: 3 Aug 2006
Posts: 428
|
12-20-2009 19:03
I use the last 6 hex digits of the key (converted to decimal) as a channel number both objects share and pass information that way.
|
Nyx Alsop
Registered User
Join date: 14 Dec 2008
Posts: 252
|
12-21-2009 03:33
How do I convert to decimal?
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
12-21-2009 04:09
No need to convert to decimal  Converting to an integer is quite sufficient say: integer number = (integer)( "0x"+llGetSubString( (string)llGetOwner(), -8, -1 )); This snippet takes the last 8 hex digits of the owner key and convert them to an integer.
_____________________
From Studio Dora
|