Facility Control

 View Only
  • 1.  Controlling a timer from ogScript in Dashboard

    Posted 08-23-2013 11:00
    Hi !

    Is it possible from ogScript to set and control timers ?

    I would like to be able to "correct" a timer used as a game clock, is this possible ?

    BR,

    Ole A.


  • 2.  RE: Controlling a timer from ogScript in Dashboard

    Posted 08-23-2013 14:06
    Hi Ole.

    There are a number of ogScript functions available to manipulate timers including: start timer, stop timer, reset timer, set current time, add or remove time, set start time, set stop time, etc.

    Most of them look something like this in ogScript:

    ogscript.getTimerManager().getTimer('CountUpOrDown').start(true);

    But you don't need to get to them this way. Once you have a timer installed on your CustomPanel, you will get a new task type (to attach to buttons, labels, or timers) that says "Timer Control". All of these features are available from that task type.

    James

    #DashBoard