Skip to content

Studio Script Reference: Timer actions

All timer actions require the UUID of the target timer, found under the Advanced section of the inspector when the timer is selected.

context.actions.resetTimer()

Resets a timer back to its initial state.

Example:

js
context.actions.resetTimer({
  timerId: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7'
});

context.actions.startTimer()

Starts a timer. Optionally override the delay (ms before starting) and how many times the timer repeats.

Example:

js
context.actions.startTimer({
  timerId: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7',
  timerDelay: 1000,  // optional: delay in ms
  timerRepeat: 3     // optional: number of repetitions
});

context.actions.stopTimer()

Stops a running timer.

Example:

js
context.actions.stopTimer({
  timerId: 'dc61dc36-b0f4-4dc9-a9a8-7f4ec0088ac7'
});