|
Cayron Seitan
Registered User
Join date: 13 Jan 2007
Posts: 2
|
11-06-2007 06:40
Hi there,
I want to script a board that gives infos via textures. It is going to be chat-controlled. What I need to know now is: How can it reset/return to a default texture after not being used (touch/chat-commanded) for some certain period of time (like one minute)?
I tried SEARCH-functions but I just do not know what to look for (tried TIME and IDLE as keywords so far).
|
|
nand Nerd
Flexi Fanatic
Join date: 4 Oct 2005
Posts: 427
|
11-06-2007 06:52
Set a timer after each interaction. Each time you set it you're effectively resetting the count, so if you llSetTimerEvent(60.0); your user only needs to touch at least once every 59.9 seconds to keep the system active. If there is no interaction in the 60seconds your timer() event is called in which you can reset your display (i.e. set the texture to default) and turn off the timer using llSetTimerEvent(0.0);
_____________________
www.nandnerd.info http://ordinalmalaprop.com/forum - Ordinal Malaprop's Scripting Forum
|
|
Cayron Seitan
Registered User
Join date: 13 Jan 2007
Posts: 2
|
Thx
11-06-2007 07:16
Okay... thanks. I am a scripting noob though, but I*ll try my very best.
|
|
nand Nerd
Flexi Fanatic
Join date: 4 Oct 2005
Posts: 427
|
11-06-2007 07:39
From: Cayron Seitan I am a scripting noob though, but I*ll try my very best. It's difficult to gauge the level of detail some people require from their questions. Some folk are looking for the entire script written and hand delivered in a nicely wrapped box whereas others just look for a hint in the right direction. If you have any further problems with this or how to implement it don't be afraid to ask. Also, reading up on what the wiki(s) have to say on the llSetTimerEvent and timer() should help. http://wiki.secondlife.com/wiki/LSL_Portalhttp://www.lslwiki.net/lslwiki/http://rpgstats.com/wiki/
_____________________
www.nandnerd.info http://ordinalmalaprop.com/forum - Ordinal Malaprop's Scripting Forum
|