ttt

Returns the units timetotarget (time to target).

Defaults mover to Player and target to the players target.

ttt([mover, target]) : number
-- aliases
timetotarget([mover, target]) : number

Example

if ttt('pet', 'target') > 3 then
-- Let's take a second, let our pet get closer.
end

Note

This is an estimation, as all things math, it's not PERFECT, but it's good enough.