-
Notifications
You must be signed in to change notification settings - Fork 113
Timer commands
Hotride edited this page Dec 8, 2019
·
3 revisions
Command format:
ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
-
ReturnType - the return value of the function (void - the function returns nothing);
-
NameSpace - the scope of the function;
-
name - the name of the function;
-
requiredParameters - required parameters;
-
optionalParameters - optional parameters, the default value is indicated after the = sign
Check if timer with given name exists.
Returns true if such timer exists.
Create/Change timer with 'delay' as initial value. Default is 0.
Get current value of timer by name.
Returns -1 if such timer doesn't exist .
Returns time passed from timer initiation in ms.
Removes timer with a given name.
Removes all existing timers.