<div dir="ltr">Hello Justin,<div style>This is one situation where having an an on_die() could be useful. Let us say we have a linked object, with a root script that contains the llDie() command. This llDie is triggered by some third party object through some trivial say-listen 'talk' protocol. Now, we can have multiple other scripts in the children of the object with the llDie command. These other scripts might need to do specific things if they knew that the llDie command is being triggered in root.  These other scripts can be informed about their imminent demise, which can be done through llMessageLinked to all children .. I see a lot extra internal communications needed here before the linked object dies.</div>

<div style><br></div><div style>Where as state_exit() for eg works well. I could have a code to execute on state_exit() in a child script, and a different piece of code to execute on a different state_exit in a root script. This seems to work well. So when I take the linked object back into inventory, the various commands to be executed on state_exit() work as expected. I was just thinking it would be great if there were a similar on_die() event.</div>

<div style>Ramesh</div><div style><br></div><div style>st</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 15, 2013 at 4:15 PM, Justin Clark-Casey <span dir="ltr"><<a href="mailto:jjustincc@googlemail.com" target="_blank">jjustincc@googlemail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ramesh.  I'm not entirely sure what you mean here.  As a script has to execute llDie() on itself, can it not just do whatever needs to be done before it triggers llDie()?<div class="im">

<br>
<br>
On 14/05/13 21:54, Dr Ramesh Ramloll wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hello,<br>
Recently I ve been trying to find a simple way for dying objects that those that forced to llDie() to do something<br>
before they get deleted. Note that a deleted object does not trigger state_exit() which is used for other known<br>
purposes. Please share your ideas regarding a possible solution ... right now I cannot think of anything else other than<br>
triggering events just before the llDie command is executed in a given script. Problem is that this approach quickly<br>
escalate resource consumption if the behavior before an object dies is defined in other scripts .. have to<br>
llmessagelinked or listens etc..<br>
Anyway let me know what you think.<br>
Ramesh<br>
<br>
--<br>
'Consider how the lilies grow. They do not labor or spin.'<br></div>
*Rameshsharma Ramloll* PhD, CEO CTO DeepSemaphore LLC, Affiliate /Research Associate Professor/, Idaho State University,<div class="im"><br>
Pocatello, ID 83209 Tel: <a href="tel:208-240-0040" value="+12082400040" target="_blank">208-240-0040</a><br></div>
Blog <<a href="http://deepsemaphore.posterous.com/" target="_blank">http://deepsemaphore.<u></u>posterous.com/</a>>, LinkedIn <<a href="http://www.linkedin.com/in/rameshramloll" target="_blank">http://www.linkedin.com/in/<u></u>rameshramloll</a>>, DeepSemaphore LLC<br>


<<a href="http://www.deepsemaphore.com" target="_blank">http://www.deepsemaphore.com</a>><u></u>, Google+ profile <<a href="https://plus.google.com/103652369558830540272/about" target="_blank">https://plus.google.com/<u></u>103652369558830540272/about</a>><br>


<br>
<br>
______________________________<u></u>_________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-users</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Justin Clark-Casey (justincc)<br>
OSVW Consulting<br>
<a href="http://justincc.org" target="_blank">http://justincc.org</a><br>
<a href="http://twitter.com/justincc" target="_blank">http://twitter.com/justincc</a><br>
______________________________<u></u>_________________<br>
Opensim-users mailing list<br>
<a href="mailto:Opensim-users@lists.berlios.de" target="_blank">Opensim-users@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-users" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-users</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#999999">'Consider how the lilies grow. They do not labor or spin.'</font><br><b>Rameshsharma Ramloll</b> PhD, CEO CTO DeepSemaphore LLC, Affiliate <i>Research Associate Professor</i>, Idaho State University, Pocatello, ID 83209 Tel: 208-240-0040<br>

<div><a href="http://deepsemaphore.posterous.com/" target="_blank">Blog</a>, <a href="http://www.linkedin.com/in/rameshramloll" target="_blank">LinkedIn</a>, <a href="http://www.deepsemaphore.com" target="_blank">DeepSemaphore LLC</a>, <a href="https://plus.google.com/103652369558830540272/about" target="_blank">Google+ profile</a></div>


</div>