|
Sturm Hellershanks
Registered User
Join date: 22 Jun 2008
Posts: 9
|
07-14-2008 15:18
Hi,
Just a confirmation really. I am trying to learn LSL by trying to create my own camping system in which you have to "hold" an item to activate the camp. I am finding through my debugging llShout's that the UUID of the object needing to be held changes each time I attach it.
The object is in my inventory 100% of the time and all I am doing is intially "wearing" the object and then "detaching" it back to the inventory. I am using llGetKey() which I presume is the UUID of the prim the script is in.
Does the SL system randomly assign an object a UUID upon attaching it to an av / rezzing in-world or am I asking for the wrong UUID?
- Sturm Hellershanks
|
|
Darien Caldwell
Registered User
Join date: 12 Oct 2006
Posts: 3,127
|
07-14-2008 15:34
From: Sturm Hellershanks Hi,
Just a confirmation really. I am trying to learn LSL by trying to create my own camping system in which you have to "hold" an item to activate the camp. I am finding through my debugging llShout's that the UUID of the object needing to be held changes each time I attach it.
The object is in my inventory 100% of the time and all I am doing is intially "wearing" the object and then "detaching" it back to the inventory. I am using llGetKey() which I presume is the UUID of the prim the script is in.
Does the SL system randomly assign an object a UUID upon attaching it to an av / rezzing in-world or am I asking for the wrong UUID?
- Sturm Hellershanks Yes, objects rezzed are not assigned a UUID until they are brought out of the asset server. The UUID of an object you can see while it's in inventory is actually it's asset ID. Best to have your worn object talk to whatever is sensing it to somehow 'authenticate' it's the proper item.
|
|
Sturm Hellershanks
Registered User
Join date: 22 Jun 2008
Posts: 9
|
07-14-2008 15:53
Thanks for the clarification. Currently, my client object (which attaches to the avatar) does send it's UUID to to the listening server but I guess I was under the impression that an object was assigned a permenant UUID, whether it be on the asset server or rezzed into the world.
Thanks for the information!
|