Prev Previous Post   Next Post Next
Old 30th May 2005, 16:18   #1
Senior Member
Join Date: Nov 2004
Location: Mumbai ( Bombay ), India
Posts: 143
Need help with MAKI script ...

MAKI script gurus ... please help. How do I do this :

I want to call a function f every n seconds, until a condition c is true.

The function f will of course make sure that condition c becomes true, but the number of times function f needs to be called to make condition c true is not fixed.

What I'm trying to do is move a drawer in steps ( every few ses ), as long as the cursor is on a GuiObject ( or the drawer is fully opened ).

My problem is that after I do a timer.start() to call function f after n secs, how do I pause until f is called ?
I need to do a timer.start() again only after function f has exited and the condition c is not true.

I've explained the problem as well as I can ...
gbr is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump