|
Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
|
06-15-2007 08:10
heyas;
if i want to make an object that does something weekly... what's the best way to go about that?
i'm thinking of making a little contest thing that will accept entries up until midnight on friday, then do a drawing like on saturday morning. i'm also thinking that since its just for me, i could just press a button when i sign on saturday and do the drawing. ;D
_____________________
Why Johnny Can't Rotate: http://forums.secondlife.com/showthread.php?t=94705
|
|
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
|
06-15-2007 09:39
Your touch way sounds easiest.
But you could put a timer in it. Using llGetUnixTime or one of the time routines, figure the number of seconds between the current time and midnight of saturday. And set a llSetTimerEvent to go off then.
Or to make the calculations a little easier, just figure the number of seconds until midnight of the current day. Set the timer. Then check if its the right day to do the drawing yet.
|