Scripting

Search The Documentation:

  1. Home
  2. Docs
  3. Scripting
  4. Script Specific
  5. firstRun

firstRun

Platform Compatibility

PC Mac OSX Oculus Quest
X X X

Is this the first time the script has run? Useful for setting up variables

returns a Boolean (true or false) value

Example:

1
2
3
if obj.firstRun() then
      lives = 3
end
Tags
Was this article helpful to you? Yes No

How can we help?