Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Delete Prim or Script in Prim after so many days?

Truck Wingtips
Registered User
Join date: 19 Oct 2007
Posts: 6
01-23-2008 10:05
Delete Prim or Script in Prim after so many days? Is this possible? I am sure it is. If anyone can point me in the right direction that would be great! =) I have searche the forums with no luck.
Ee Maculate
Owner of Fourmile Castle
Join date: 11 Jan 2007
Posts: 919
01-23-2008 10:14
Use a timer event and then llRemoveInventory? I don't know if there's a maximum value for llSetTimerEvent, but it must be more than 86400 which is number of seconds in 24 hours?
Truck Wingtips
Registered User
Join date: 19 Oct 2007
Posts: 6
01-23-2008 10:42
From: Ee Maculate
Use a timer event and then llRemoveInventory? I don't know if there's a maximum value for llSetTimerEvent, but it must be more than 86400 which is number of seconds in 24 hours?


Thanks!
Cryas Tokhes
Great Googley Moogley...
Join date: 8 Feb 2006
Posts: 124
01-23-2008 16:35
Truck is correct. To remove an item IN the inventory of the object, you would use llRemoveInventory.


If you want to delete the object, you would use llDie
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-23-2008 16:54
...and if you want to delete an attachment...tough. Your best bet is to remove the useful inventory items from it and put one script in a state from which it will always immediately detach itself when worn, and delete itself if rezzed otherwise. You might try changing it's name too, but up to at least a few months ago that didn't get reflected in resident inventory for some reason (a bug, I assume).