I look currently for an event, which gets control when I delete an object. Is there something like a detach for objects?
Regards
Luke
These forums are CLOSED. Please visit the new forums HERE
delete event |
|
|
Luke Lachman
Registered User
Join date: 17 Dec 2006
Posts: 18
|
03-30-2007 07:55
I look currently for an event, which gets control when I delete an object. Is there something like a detach for objects?
Regards Luke |
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
03-30-2007 08:11
You can control attachments through scripting, yes. Though you cannot delete the attachment because when it attaches it goes into the avatar's inventory like any wearable item, and scripts cannot change an AV's inventory other than to give items to it.
A lot of builders use this method to get around the prim limits for physics by building a basic hull of 30 or fewer prims and making the details 'attach' and orient to the proper position. |
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
03-30-2007 08:35
I think you're wondering if there's a way for your object to tell that it's being deleted. Unfortunately, there's nothing like that. That makes some scripting tasks a real pain.
|
|
Luke Lachman
Registered User
Join date: 17 Dec 2006
Posts: 18
|
03-30-2007 10:52
I think you're wondering if there's a way for your object to tell that it's being deleted. Unfortunately, there's nothing like that. That makes some scripting tasks a real pain. Hi Lex, that's exactly what I read somewhere else. But I couldn't believe, how can you build a object which interacts with a webside, when you can't remove the object key in a database when the object gets deleted!!! Also, I read somewhere that griefer us a technic to rerezz an object when it gets deleted. So there must be something like a delete event. Or did I miss something |
|
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
|
03-30-2007 10:55
They probably either have some external script or something communicating with the device and will rerez it if it doesn't get a response. Or they could be using a rez timer with a really low timer event to make it hard to catch.
|
|
Luke Lachman
Registered User
Join date: 17 Dec 2006
Posts: 18
|
03-30-2007 16:01
I proposed a delete event.
vote for proposal 3109 |
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
03-31-2007 09:12
Hi Lex, that's exactly what I read somewhere else. But I couldn't believe, how can you build a object which interacts with a webside, when you can't remove the object key in a database when the object gets deleted!!! Also, I read somewhere that griefer us a technic to rerezz an object when it gets deleted. So there must be something like a delete event. Or did I miss something I think you're thinking of Temp-Rezzers. They make use of the Temporary On Rez flag, which deletes objects automatically about 2 minutes after they're rezzed. The systems repeatedly rez new copies of the object every 2 minutes, timed to just barely overlap the lifetime of the previous copy. This is a way of trying to cheat their way around prim limits, but I don't recommend doing it. |
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
03-31-2007 12:28
can we also have an "on_unattach" event and a way to DELETE an attachment? And how about llDrop?
_____________________
![]() ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura |
|
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
|
03-31-2007 17:08
Well...the attach() event TECHNICALLY functions as an on_unattach event if you:
CODE
But I completely understand what you mean. We need an event that will allow itself to fully run as an object detaches...before it returns to inventory. _____________________
--AeonVox--
Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music. |
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
03-31-2007 17:53
can we slip a llDie in there?
_____________________
![]() ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura |
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
04-01-2007 00:29
Not successfully, no.
_____________________
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
04-01-2007 05:57
I want llDrop!
_____________________
![]() ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura |
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
04-01-2007 08:20
Note that an attach() event in a child prim of an attachment does not run on detach... it queues the event. When you attach the object next, the attach(NULL_KEY) event runs, quickly followed by the attach(wearer's key) event. It's a serious pain and was introduced (and bug-reported) at least a year ago.
|
|
Pranen Dean
Registered User
Join date: 15 Dec 2006
Posts: 3
|
04-02-2007 01:54
Perhaps, you could create a timer-event that sends a keep-alive-message to the server. (Once a day) And if this message misses for i.e. a week, you could delete the object on your server.
|