Timer

Timer are normally used to display messages after a certain period of time. They are also often used to keep track of the maximum amount of time for an action to complete.

Table of Contents

Methods

Check

Syntax: Timer.Check(name)

Check if a timer object is expired or not.

Parameters:
  • name (String)
Returns: Boolean

Create

Syntax: Timer.Create(name, delay, message)

Create a timer with the provided name that will expire in ms_timer time (in milliseconds)

Parameters:
  • name (String): Timer name.
  • delay (Int32): Delay in milliseconds.
  • message (String): Message displayed at timeouit.
Returns: Void

Remaining

Syntax: Timer.Remaining(name)

Get remaining time for a named timer

Parameters:
  • name (String): Timer name
Returns: Int32