Talk:Drink script

From Second Life Wiki
Revision as of 10:09, 15 May 2009 by Sheridan Otoole (talk | contribs) (Cycles)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Cycles

Why does this script have both a flag variable that loops through values 0-3 and a timer event triggering how often it happens? Currently the timer fires every 15 seconds, incrementing the flag variable and looping when it hits 4, and only firing the "drink" animation when flag equals 1, which means it fires once a minute. Wouldn't it be more effective to just have a timer set to 60 seconds and fire the animation every time? --Sheridan Otoole 18:09, 15 May 2009 (UTC)