I was thinking that something like this would work...
Float fTime = Utility.GetCurrentRealTime()While fTime < (fTime + 5.0) fTime = Utility.GetCurrentRealTime()EndWhile...but the loop doesn't seem to end.
Float fTime = Utility.GetCurrentRealTime()While fTime < (fTime + 5.0) fTime = Utility.GetCurrentRealTime()EndWhile...but the loop doesn't seem to end.
Float fTime = Utility.GetCurrentRealTime()Float fTarget = (Utility.GetCurrentRealTime() + 5)While fTime < (fTarget) fTime = Utility.GetCurrentRealTime()EndWhileAlso, since this will run every single tick, if you don't need it to be precise you should add a 'Utility.Wait(1.0)' after the line that updates fTime inside of the while. However, if this is literally a timer for 5 seconds don't do it. But if you were timing something like 3 minutes, you wouldn't need precision, and could save some on performance.