|
Robustus Hax
Registered User
Join date: 4 Feb 2007
Posts: 231
|
01-30-2008 22:47
Hey all, I haven't scripted in a long time, but basically, I have an object, click the object it rezzes said object. What LSL function should i be looking for to say if I click that object that was rezzed it will de-rez or kill it. I'm wondering if its something to do with temp rez? Can anyone help me out, point me to the right function? 
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
01-30-2008 22:57
You can make the rezzed object temporary, but you have to do it BEFORE it is rezzed. Although you can do this via script, it is easiest just to check the "Temporary" checkbox in the edit window, then take it and stuff it into your rezzer object's inventory.
But being temporary just means it will go away on its own after a short (but uncontrollable) period of time (usually about 30-90 seconds, I believe). The other thing you can do is use llDie() in your script to delete the object completely at some point you control (like in a touch event, which seems to be what you want). Or you can do a combination of both, of course (but if temporary, I think the only way you can KEEP it from dying automatically is to sit on it).
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-31-2008 02:19
heewee is correct, temp objects with attached avatars will not self delete as normal (they are defered until there are no attached avatars).... the other way to possibley defer detachment, is to make it create a link with itself on a regular basis (never tried it with temps, may not work) essentailly telling the server it's a new object repeatedly, and thus defering it's normal deletion... llDie is a better option
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Robustus Hax
Registered User
Join date: 4 Feb 2007
Posts: 231
|
01-31-2008 06:35
Hmm, llDie does sound like the best option, Id just be rezzing copies of an object so deleting the rezzed version completely wouldnt be a bad option. Would these objects that are deleted through llDie show up in the person inventory trash?
|