View Single Post
03-26-20, 11:17 PM   #5
Kanegasi
A Molten Giant
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 666
Fizzlemizz means that C_Timer only accepts a function object with no arguments. You're not using self anyways, so just function() will do.

As for your error, what is the item causing the error? Are you sure itemValue is not nil? Some items have no value and there's no guarantee it's zero.

Concerning C_Timer delay, the lowest value is determined by your fps. It can only delay something as quick as a single frame. If you are consistently running at 60fps, the lowest value is 1/60 or 0.016. If your computer is average or below and it gets, say, 10fps, the lowest value is 1/10 or 0.1. The reason behind this is that Lua only runs frame-by-frame. Once the next frame is processed, the low value delay has already passed.
  Reply With Quote