Kimo Katana Posted August 26, 2020 Posted August 26, 2020 (edited) hello Edited August 26, 2020 by Kimo Katana
Rolig Loon Posted August 26, 2020 Posted August 26, 2020 Turn a ten second timer ON when you touch the lamp and then let the timer turn the lamp and itself OFF ten seconds later. See http://wiki.secondlife.com/wiki/LlSetTimerEvent#Examples 1
Madelaine McMasters Posted August 26, 2020 Posted August 26, 2020 (edited) Rolig's timer suggestion is best. Done right, such a script would allow you to keep extending the on time by touching the lamp before it goes out. A simpler and less elegant solution would be to use the oft maligned llSleep( ) function. http://wiki.secondlife.com/wiki/LlSleep Put a 10 second sleep immediately after the line in your touch_start handler that turns the light on, then follow the sleep line with a line to turn the light off. Your script will not respond to touch (or do anything else) during that 10 second sleep, which is why we so often recommend against using llSleep( ). Edited August 26, 2020 by Madelaine McMasters
Kimo Katana Posted August 26, 2020 Author Posted August 26, 2020 (edited) hello Edited August 26, 2020 by Kimo Katana
So Whimsy Posted August 26, 2020 Posted August 26, 2020 Lmao with the OP edited @Rolig Loon's answer seems so out of the blue. "So you're new? Let me teach you about lamp timers!" 2 2
Rolig Loon Posted August 26, 2020 Posted August 26, 2020 (edited) 6 minutes ago, So Whimsy said: Lmao with the OP edited @Rolig Loon's answer seems so out of the blue. "So you're new? Let me teach you about lamp timers!" LOL. Newcomers to the forums take a while to learn that we NEVER delete the text of an OP. That just confuses everyone who comes along later. Edited August 26, 2020 by Rolig Loon Cleaner wording 1
Phate Shepherd Posted August 26, 2020 Posted August 26, 2020 1 hour ago, Rolig Loon said: LOL. Newcomers to the forums take a while to learn that we NEVER delete the text of an OP. That just confuses everyone who comes along later. Reading just the word "Hello" has started to give me PTSD shakes from all the support IM's that say "Hello" or "Hi" without asking a question. I hate to be rude and not reply, but I hate it even more to have to do the pointless handshake before valid data is transferred.
Rolig Loon Posted August 26, 2020 Posted August 26, 2020 Just for the record -- so that the context doesn't get lost for anyone who might find this thread in the future -- the OP's question was basically how to turn a light ON by touch and have it turn OFF automatically 10 seconds later. 😉
LittleMe Jewell Posted August 26, 2020 Posted August 26, 2020 2 hours ago, So Whimsy said: Lmao with the OP edited @Rolig Loon's answer seems so out of the blue. "So you're new? Let me teach you about lamp timers!" This is why I so often quote the OP, whether or not I think the quote is truly needed. 2
Mollymews Posted August 27, 2020 Posted August 27, 2020 12 hours ago, Kimo Katana said: hello default { state_entry() { llListen(0, "Kimo Katana", NULL_KEY, "hello"); } listen( integer channel, string name, key id, string message ) { llSay(0, "hello! to you too!"); } } 😺 4
Wulfie Reanimator Posted August 28, 2020 Posted August 28, 2020 (edited) On 8/26/2020 at 10:48 PM, Phate Shepherd said: Reading just the word "Hello" has started to give me PTSD shakes from all the support IM's that say "Hello" or "Hi" without asking a question. I hate to be rude and not reply, but I hate it even more to have to do the pointless handshake before valid data is transferred. Just wait until you hear about TCP communication! (If you don't get it, let's just call it UDP.) Edited August 28, 2020 by Wulfie Reanimator 2
Phate Shepherd Posted August 28, 2020 Posted August 28, 2020 14 minutes ago, Wulfie Reanimator said: Just wait until you hear about TCP communication! (If you don't get it, let's just call it UDP.) I date from the serial days. ACK! NAK! Now I sound like the martians from "Mars Attacks!"
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now