Jump to content
You are about to reply to a thread that has been inactive for 1565 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Posted (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 by Madelaine McMasters
Posted (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!" xD

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 by Rolig Loon
Cleaner wording
  • Like 1
Posted
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.

Posted

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.  😉

Posted
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!" xD

This is why I so often quote the OP, whether or not I think the quote is truly needed.

  • Like 2
Posted
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!");
    }
}

😺

  • Haha 4
Posted (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 by Wulfie Reanimator
  • Like 2
Posted
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!"

You are about to reply to a thread that has been inactive for 1565 days.

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
×
×
  • Create New...