System Timer Elapsed

System Timer Elapsed

This event hook is triggered based on a timer. The interval for the timer is defined by the SystemManagerAddonInterval customization key. Each time the system manager triggers this event, any server addon registered for this event hook will be executed.

Event Hook Name: SystemTimerElapsed

function Init() RegisterSystemEventHandler("SystemTimerElapsed", "TimerElapsed"); 
end  function TimerElapsed(eventArgs) LogDebug("Testing Server Addons"); end'

Input Parameters

  • None

Output Parameters

  • None

Example

The following is an example of the syntax used to register for the System Timer Elapsed event hook which would add a Debug.

function Init()
	RegisterSystemEventHandler("SystemTimerElapsed", "TimerElapsed");
end
 
function TimerElapsed(eventArgs)
	LogDebug("The system timer has elapsed and triggered the execution of this 
	sample server addon");
end

Related content