From f432cfea6292098fc4c495fdc45c5f7935d26b98 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Tue, 18 Apr 2017 18:09:14 -0400 Subject: [PATCH] check HMD.active for tutorial zone --- tutorial/tutorialStartZone.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial/tutorialStartZone.js b/tutorial/tutorialStartZone.js index cb0d223200..13e5ac89d0 100644 --- a/tutorial/tutorialStartZone.js +++ b/tutorial/tutorialStartZone.js @@ -13,7 +13,7 @@ var self = this; // send message to outer zone print("TutorialStartZone | Entered the tutorial start area"); - if (HMD.isHMDAvailable() && HMD.isHandControllerAvailable()) { + if (HMD.isHMDAvailable() && HMD.isHandControllerAvailable() && HMD.active) { function sendStart() { print("TutorialStartZone | Checking parent ID"); var parentID = Entities.getEntityProperties(self.entityID, 'parentID').parentID; @@ -28,8 +28,8 @@ this.sendStartIntervalID = Script.setInterval(sendStart, 1500); sendStart(); } else { - print("TutorialStartZone | User tried to go to tutorial with HMD and hand controllers, sending back to /"); - Window.alert("To proceed with this tutorial, please connect your Vive headset and hand controllers."); + print("TutorialStartZone | User tried to go to tutorial without active HMD and hand controllers, sending back to /"); + Window.alert("To proceed with this tutorial, please connect your Vive or Oculus headset and hand controllers."); location = "/"; } },