|
Kai Venkman
Will script for food...
Join date: 21 Feb 2006
Posts: 43
|
03-16-2006 07:33
I searched the forum but didn't get any hits to I'll pose the question:
When a prim is deleted do you get any event? I was thinking you might get a state_exit or some kind of changed?
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
03-16-2006 08:22
I'm afraid the answer to that is "in your (and several other people's) dreams".
That said write it up and send it to Kelly, you never know!
|
|
Fenrir Reitveld
Crazy? Don't mind if I do
Join date: 20 Apr 2005
Posts: 459
|
03-16-2006 09:20
The only time you can tell when an object is being de-rezzed is if it is attached to an avatar. The attach() event will be called when the agent unequips the object. (Which effectively de-rezzes it.) However, you only get a few scant cycles to do any processing before the object goes away so don't look to do much except maybe set a few flags and stop an animation...
For non-attached objects, there's no way to tell when it's been derezzed (unless another external object is monitoring it). Worse, some events fire BEFORE on_rez() when an object rezzes. For example, not_at_target() and so on. This is immensely frustrating when it comes to cleaning up prim position/rotation altering effects (so as llMoveToTarget's and such)...
|
|
Kai Venkman
Will script for food...
Join date: 21 Feb 2006
Posts: 43
|
03-16-2006 11:40
So I guess if I have the key to the object I can do a llGetObjectName(objKey) periodically and check for the empty string? Sounds kind of kludgey but if no one else has a better idea...
|