These forums are CLOSED. Please visit the new forums HERE
Need an alternative to llSleep |
|
Gattz Gilman
Banned from RealLife :/
![]() Join date: 29 Feb 2004
Posts: 316
|
09-16-2004 11:26
im scripting a renting machine for a lodge, and im using llSleep for it to tell when the person needs to leave. But what if the customer wanted to pay more for more time? he/she would be unable to because the script becomes inactive while its in sleep. is there another way to have it wait without having the entire script asleep?
_____________________
![]() |
Adam Zaius
Deus
![]() Join date: 9 Jan 2004
Posts: 1,483
|
09-16-2004 11:32
Look at a timer. See the wiki (www.badgeometry.com/wiki)
_____________________
|
Samhain Broom
Registered User
![]() Join date: 1 Aug 2004
Posts: 298
|
09-16-2004 11:35
What about this suggestion? In stead of using the llSleep method to track the time, what about using the llGetWallClock and a combination of that and measuring the seconds left till the "Give the Boot time"?
Perhaps what will trigger the check for the time remaining could be some kind of a sensor to see if that person is logged on? Is this device scripted to accept more $L on input from the customer? Sorry I did not write any code to show you, but at least now you can try something else. =) _____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
|
Gattz Gilman
Banned from RealLife :/
![]() Join date: 29 Feb 2004
Posts: 316
|
09-16-2004 11:37
so, could i do something like:
CODE
So that the timer wont loop on itself when the alloud time has expired? _____________________
![]() |
Gattz Gilman
Banned from RealLife :/
![]() Join date: 29 Feb 2004
Posts: 316
|
09-16-2004 11:39
the wall clock is a good idea, but im just a basic scripter :/.
I asked about an alternative to llSleep for that reason, if the customer wanted to add more time before it expired. _____________________
![]() |
Samhain Broom
Registered User
![]() Join date: 1 Aug 2004
Posts: 298
|
09-17-2004 08:41
Why don't we get together IW and talk about this.
If you want some help, I'm willing to help for free. If you want me to make a device, I might want to get something for that. =) _____________________
rm -rf /bin/ladden #beware of geeks bearing grifts
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
09-17-2004 11:16
Originally posted by Gattz Gilman so, could i do something like: CODE
So that the timer wont loop on itself when the alloud time has expired? You are correct. With that script, the timer event will fire one second after the object is touched. The llSetTimerEvent(0) statement will prevent further re-triggering of the timer event, until the object is touched. ==Chris |