Jump to content

menu and ignore button


steph Arnott
 Share

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

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

Recommended Posts

Whenever you write llSetTimerEvent() to start a timer in a script, the first thing you should think about is how to stop it.  If you don't stop it on purpose, a timer will keep ticking until the script is reset.  It will persist across state changes, even.  So, if you open a dialog box and start a timer, write a llSetTimerEvent(20.0) statement right after it and then write a timer event with llSetTimerEvent(0.0) as the first command so that the timer stops in 20 seconds if someone has ignored the dialog or clicked Ignore. Also, put llSetTimerEvent(0.0) at the top of your listen event so that the timer stops if someone does click a button. You might want to put it just before the llDialog statement too, just in case the timer is already running. And finally, if you are going to change states, put it in a state_exit event.

Link to comment
Share on other sites

I know you have your answer already but surely it's easy enough to see it for yourself, by setting the timer running when the dialog opens, and then saying something on the Timer() event. If you click the Ignore button before the timer has run down, you should still see what it says at the Timer() event, after the dialog has gone from the screen.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3026 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
 Share

×
×
  • Create New...