Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llRezObject silently failing

Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
09-08-2005 09:59
llRezObject("Light cone", llGetPos(), ZERO_VECTOR, ZERO_ROTATION, 0);

I have an object called Light cone in another one. All the rest of the script works just fine as detected by llOwnerSay() and equivalents.

but when it meets the conditions (after dark) to rez the cone it sneaks past this line without rezzing the object.

Any ideas?
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
09-08-2005 10:14
I don't see anything wrong with the posted line.
Put an llOwnerSay("Rezzing light";); ahead of it and see if it's ever getting called.
_____________________
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
09-08-2005 11:04
There are llOwnerSay's on either side of it, and they both get said...
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
09-08-2005 11:32
Apologies, I don't know why I suggested you do what you've already done. :o

I'm stumped then... :(
_____________________
Introvert Petunia
over 2 billion posts
Join date: 11 Sep 2004
Posts: 2,065
09-08-2005 11:54
Guesses: Rez will fail if out of prims or the asset server is cranky and boy has it been cranky of late; does the parent get an object_rez()? Are the perms on the cone copy and do they stay copy?

I dropped an open-perm copy of a similar thing that I made sometime back with lots of debug messages; it also responds to touch events to "fake" sunset. It just worked for me now. Good luck.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
09-08-2005 12:45
No need to apologise Jillian, it was good advice, and it never hurts to remind other people of those error checking tools.

Introvert, thank you, you reminded me of object_rez, an event I rarely use. With that and a sensor I was able to track it down. It appears my impression of a zero_rotation and zero_vector are different to LSL's. With a little number crunching I managed to sort it.

I should also add that unlike llSetPos() llRezObject will happily rez items compltely underground - in my case in a huge hill that just happened to be in the wrong place at the wrong time - hence not finding it earlier.