Grim Enigma
Registered User
Join date: 14 Nov 2005
Posts: 35
|
11-17-2005 09:59
Ok, a question in two different frames...
First, is it possible to make an object that would expire? Like, a person could "rent" a scooter or something, but they could only hold/own the object for a limited time.
Second, (more likely I think) to make an object that is used once... then no good. ie: a Firework.
|
Travis Lambert
White dog, red collar
Join date: 3 Jun 2004
Posts: 2,819
|
11-17-2005 10:23
I imagine you could get the current date/time in your script, and if its later than the "exipiration date', call an llDie.
_____________________
------------------ The ShelterThe Shelter is a non-profit recreation center for new residents, and supporters of new residents. Our goal is to provide a positive & supportive social environment for those looking for one in our overwhelming world.
|
Grim Enigma
Registered User
Join date: 14 Nov 2005
Posts: 35
|
Sounds good for the 1st part but..
11-17-2005 15:00
Whats a good way to implement a "one time use" effect?
|
Ziggy Puff
Registered User
Join date: 15 Jul 2005
Posts: 1,143
|
11-17-2005 15:39
Once the script has figured out that it's been used, make it call llDie() to kill itself. The script has to know it's been used, because a touch or a listen or something else has to be triggered for the script to do anything at all, so once it's done whatever it needs to do, it can kill itself. If it's a firework that gets rezzed from a firework making machine, then it does what it needs to do when it's rezzed... after which, it can kill itself.
|
Grim Enigma
Registered User
Join date: 14 Nov 2005
Posts: 35
|
11-17-2005 16:02
Thanks for your tips to a newbie.
|