SLUniverse Forums - View Single Post - Let's talk about coding
View Single Post
Old 11-06-2009, 05:27 AM   #7 (permalink)
Chalice Yao
The Purple
 
Chalice Yao's Avatar
Kinda at work. Somewhat.
 
Join Date: Dec 2007
Location: Somewhere purple, Germany
Posts: 3,514
My Mood:
Actually, I think the simplest way here would be to simply have a global float variable that keeps time, a global float variable that holds the current interval value, set llGetTime() into it each time a leaf drops, and just do an

Code:
if((llGetTime() - fLastDropTime) >= fCurrentInterval)
  {
    drop leaf,
    set fLastDropTime to llGetTime()
  }
In the timer. Then you don't need to do the value incrementing each time at all :>
__________________
"Have you ever noticed that anybody driving slower than you is an idiot, and anyone going faster than you is a maniac?" - George Carlin
Chalice Yao is online now   Reply With Quote
1 User Said Thanks: