Skip to content

Controlling Modes & Scripts

mika edited this page Apr 26, 2018 · 4 revisions

Force Join Class

  • void JoinClass(string classid)
    • disconnects and joins another class

Controlling Modes & Scripts

  • void SwitchMode(string newMode)
    • switches to another mode, without deleting LUA generated objects
    • modes: D, O, S, 360, PC, G, 3D, T, PHOTOSPHERE, EMPTY
    • you can call b:ClearObjects() manually to clear them
    • NOTE: previous script loops get stopped/destroyed
  • void ToggleVR(bool state)
    • toggle vr mode on/off
  • bool GetVRMode()
    • returns true if cardboard vr mode is enabled
Clone this wiki locally