Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Return an object back to owner's inventory

Angus Balboa
Registered User
Join date: 19 Aug 2006
Posts: 14
11-06-2007 12:13
I have an object that's function is used while rezzed. Well, I've been giving it out to my friends for testing purposes, and sometimes they leave them lying around and log off. I know most of the time a parcel will return the object back to them when they log out, but how can I do that manually with a script?

I've considered using a sensor to see if the owner is around it (and yes, the object is already intended to be around the owner as long as it's rezzed), and delete itself if the owner can't be found; but llDie completely deletes the object, rather than returning it.

Any suggestions are helpful.
Kage Seraph
I Dig Giant Mecha
Join date: 3 Nov 2004
Posts: 513
11-06-2007 12:31
Hey Angus,
You can't force an object into someone's inventory (imagine the potential for abuse on the asset server!), but as you say, llDie can kill it off nicely. One alternative might be to make the test object an attachment. That way you can call llDetachFromAvatar() and THAT will keep the item in the user's inventory. See also, http://wiki.secondlife.com/wiki/LlDetachFromAvatar
_____________________
Angus Balboa
Registered User
Join date: 19 Aug 2006
Posts: 14
11-06-2007 12:35
Well that's the thing though... the object doesn't work right when attached, so it has to be rezzed, and since the object is no copy to those I transfer it to (or sell), all I'm really wanting is for it to be returned to them, since the land returning it doesn't always seem to work in a timely manner (plus I'm a tad paranoid that they could lose it if they leave it laying around somewhere).
Nika Talaj
now you see her ...
Join date: 2 Jan 2007
Posts: 5,449
11-06-2007 12:43
If it's nocopy, then it sounds like the only thing you can do is have the object sense if the owner is near, and if not, IM them.

Scripted non-attaching pets send IMs if lost ... but then pets are usually copiable, so it is no problem if they have a die built into the script.