Creates and starts a timer that calls 'callback' after 'duration' seconds.. The timer resolution will only be correct after the character is fully in the game, due to the underlying mechanism being tied to frame draws.


See also Utility functions.

Signature:

C_Timer.After(duration, callback)

Arguments:

  • duration - Seconds before the timer completes (number)
  • callback - What you want to execute when the timer's duration has elapsed (function)

Examples:

C_Timer.After(7, function() print("Hello World") end)