Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Viewing a script in an object which is in an object..

Lorenzo Ludovico
Registered User
Join date: 6 Feb 2005
Posts: 23
02-12-2005 11:44
Okay, I'll try to explain this simply.

I'm working on creating a spotlight. I set a llListen command for the base of it to rez the "light" prim when I say "lights on" on channel 1. This works perfectly.

Now, I edited the actual light prim that rezzes, and I added a script to this also. This script has a listen command waiting for lights off so it can run llDie and turn itself off.

My question is this, since I'm forced to contain the light prim inside the base. Is there any simple way of viewing and editing a script that is nested inside an object inside an object? For instance, is there any way to edit the script for the light prim without first having to remove it from the base and then rez it out of my inventory?

Thanks in advance.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
02-12-2005 11:56
http://secondlife.com/badgeo/wakka.php?wakka=llRemoteLoadScriptPin
http://secondlife.com/badgeo/wakka.php?wakka=llSetRemoteScriptAccessPin

After you rez it you could send it the control script it needs
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
02-12-2005 13:07
quick kinda off topic question........ since llRemoteLoadScriptPin loads a script into another object by using that objects key, and since an object's key changes for each copy of that object, doesn't that mean the script wouldn't work if you made a new copy of the object and doesn't that screw up selling copies of objects with scripts that require an object's key to work? am i missing something?
Moleculor Satyr
Fireflies!
Join date: 5 Jan 2004
Posts: 2,650
02-12-2005 14:28
From: Zuzi Martinez
quick kinda off topic question........ since llRemoteLoadScriptPin loads a script into another object by using that objects key, and since an object's key changes for each copy of that object, doesn't that mean the script wouldn't work if you made a new copy of the object and doesn't that screw up selling copies of objects with scripts that require an object's key to work? am i missing something?


object_rez
_____________________
</sarcasm>
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
02-12-2005 14:53
ah ha well that solves one problem. but doesn't that only work if you use llRezObject() and not if you want to use llRemoteLoadScriptPin() to start a script in an object in the inventory of another object and sell copies of the whole thing?