Page 2 of 2

Re: Text output

Posted: Sun Dec 30, 2012 9:57 pm
by vorebane
I've been able to get 'wait-like' commands working! Essentially you make use of the timer, and use a couple more functions. Your script or pressure plate or what have you activates a timer, which ticks along until it gets to a number you set. The timer is set to activate another function or object that does what its supposed to. You will also want to include a script that turns off the timer, or else have the one thing timer does keep happening forever. I hope you can make your original version work somewhere else if you're done with this bit already.

Re: Text output

Posted: Sun Dec 30, 2012 10:07 pm
by Hariolor
vorebane wrote:I've been able to get 'wait-like' commands working! Essentially you make use of the timer, and use a couple more functions. Your script or pressure plate or what have you activates a timer, which ticks along until it gets to a number you set. The timer is set to activate another function or object that does what its supposed to. You will also want to include a script that turns off the timer, or else have the one thing timer does keep happening forever. I hope you can make your original version work somewhere else if you're done with this bit already.
Absolutely, timers are really powerful.

To save some effort, you can give the timer a connection to itself and set it to "deactivate", rather than writing another function - this might be easier and 9/10 times will be all you need to keep it from cycling endlessly.

Re: Text output

Posted: Sun Dec 30, 2012 10:33 pm
by vorebane
Ah I can tell asking you about it would have saved myself some time coding then. :)

Re: Text output

Posted: Sun Dec 30, 2012 10:45 pm
by Komag
indeed, if your complex script is behaving strangely, it's always a good idea to check whether a timer isn't set to deactivate itself!