Question about Script variables and Time
I'm trying to create a Fractional Variable for use in a Status Bar.
spell, rank, displayName, icon, startTime, endTime, isTradeSkill, castID, interrupt = UnitCastingInfo("player")
I'd like the FracVar to consist of the remaining cast-time. (for a castbar mod)
I believe I'll need to work with the endTime and the current server time, GetTime()? but I can't seem to nail down the proper code.
Does anybody have any suggestions ?
= F
|