Function: StopTimer(spawn, function)
Description:
Cancels pending spawn script timers belonging to the supplied original spawn allocation. Reuse of a runtime ID cannot cancel another allocation's timers. Cancellation also suppresses callbacks already queued by the current traversal if they have not entered. It does not interrupt an entered callback.
Parameters:
spawn(Spawn) - The original spawn whose timers should be cancelled.function(string, optional) - Callback name to cancel. Omission or an empty string cancels all pending timers for that allocation.
Returns: None.
Callbacks may call StopTimer while dispatch is in progress. A timer added after
cancellation is a new registration and can run on a later traversal. See
AddTimer and Lua actor lifetime.