|
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
|
08-08-2007 03:20
I have tried a number of ways but cannot seem to find the correct way for the script in the root prim of a multi-prim object to give a copy of the whole linked object to itself for giving to the owner.
This is needed after a modification has taken place to the multi-prim object after rezzing.
Help please.
|
|
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
|
08-08-2007 03:25
There is no way for an object to become an inventory item for giving, except for an agent taking the object or it being returned to an agent's inventory.
|
|
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
|
08-08-2007 03:37
Not sure if this is an acceptable approach, but I can imagine scripting the object to clone all its prims (rezzing copies of an Inventory-contained prim that is scripted to llSetRemoteScriptAccessPin on rez), loading a script into what should become the clone's root, having it link them all up, then try to attach to the owner, with the attach() event triggering an immediate detach, such that the whole clone ends up in the owner's Inventory.
|
|
Gregory McLeod
Registered User
Join date: 21 Oct 2006
Posts: 278
|
08-08-2007 07:25
From: Qie Niangao Not sure if this is an acceptable approach, but I can imagine scripting the object to clone all its prims (rezzing copies of an Inventory-contained prim that is scripted to llSetRemoteScriptAccessPin on rez), loading a script into what should become the clone's root, having it link them all up, then try to attach to the owner, with the attach() event triggering an immediate detach, such that the whole clone ends up in the owner's Inventory. I think I am wishing for far too much. The requirement is to save me time in setting up an internal prefix to prevent multiple occurrences of the main object interfering with each other when using llWhisper or llSay to communicate within themselves. I can do the main object's prims updating by script but a rezzed sub-object needs to be already set up and I was trying to save having to do it manually. From your description I think it might be quicker to rezz the sub-object modify the root script once and have it propagated to the others using llSetRemoteScriptAccessPin which already exists to allow for changes to the child prims' scripts. I just have to update the identifier manually in the root script and then reload it and as I am loading the prefix to the main object I will just do it to the sub-object prims at the same time. Thanks for the thoughts.
|