Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Timers
  5. setTimer

setTimer

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Set or replace a timer, with target time, done action/script, looping or not, and enabled or not

Parameters:

  • name
    • A string value
  • targTime
    • A float value
  • doneScript Optional
    • A string value
  • loop Optional
    • A boolean value
  • enabled Optional
    • A boolean value

Example:

1
obj.setTimer(name, targTime, doneScript, loop, enabled)
Tags
Was this article helpful to you? Yes No

How can we help?