âŗTimer

Built-in Timer library.

Example:

function ExampleTimer()
{
    // This will get called each 5 second.
    return true; // If you return false it will not get called next time.
}

Timer.Add(ExampleTimer, 5.0);

Properties:

Name
Type
Description

remaining

float (Read Only)

Time remaining before next call

Static Functions:

.Add

Timer.Add(callback: function, delay: float): Timer

Argument
Type
Description

callback

function

Callback that will get called

delay

float

Delay in seconds

Creates a new Timer object.

Functions:

.Destroy

Timer_Object.Destroy()

Destroys a Timer object.

Last updated

Was this helpful?