|
Rebecca Naidoo
Registered User
Join date: 28 May 2008
Posts: 82
|
06-26-2008 13:47
How can I make something happen after say 10 seconds but never again?
Is there a getter setter type function?
|
|
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
|
06-26-2008 13:52
If you don't use timer events anywhere else in your script this will work. If you do, just add a flag.
//integer firstime = TRUE; optional line
default {
state_entry() // or on_rez { llSetTimerEvent(10); } timer()
{ // if (firsttime == TRUE) //optional line if reusing timer // { // optional // do stuff here // firsttime = FALSE; //optional }
llSetTimerEvent(0); //remove if reusing timer //whatever you want } }
|