Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Contents visible in object properties (die scripts)

Dan Medici
Registered User
Join date: 25 Jan 2004
Posts: 132
10-24-2004 16:54
If you've ever made an object that has a quick die script, and then tried to edit the script inside, you've probably had this trouble. We can't view scripts unless the object is rezzed, therefore we have to rez the object to try and turn the script off. The problem is, if we have a die script on these objects, it's often impossible to stop the script from running before the die kicks in. A solution I thought of was to be able to view contents in an object's properties... This way you could disable the script externally.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-24-2004 17:15
... or rez the object on no script land
... or attach the object.
_____________________
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
Gabriel Spinnaker
16052 LSL BYTES FREE
Join date: 21 Jun 2004
Posts: 73
10-24-2004 18:46
Or if the object is supposed to be rezzed by another object, make it pass a non-zero start_param when rezzing the object, and check to see if start_param is non-zero in on_rez, and if so, start the timer (or whatever) that makes the object die.
_____________________
Zuzi Martinez
goth dachshund
Join date: 4 Sep 2004
Posts: 1,860
10-24-2004 19:01
what Gabriel was saying.....
CODE
default {
on_rez(integer parameter) {
if (parameter) {
llDie(); // or whatever....
} else {
llResetScript(); // or whatever....
}
}
}


then when you use llRezObject make sure the last integer you use is greater than 0. i ran into this same thing on my current project. lost my whole object the first time i needed to make a change to it. :D