From f7228993a5f6db2cbc185d6a601fe2386924baae Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Mon, 26 Sep 2016 17:29:37 -0700 Subject: [PATCH] go into away if the application starts in HMD mode but it's not mounted --- scripts/system/away.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/system/away.js b/scripts/system/away.js index b3380a6737..331205c538 100644 --- a/scripts/system/away.js +++ b/scripts/system/away.js @@ -308,4 +308,10 @@ Script.scriptEnding.connect(function () { Controller.keyPressEvent.disconnect(maybeGoActive); }); +if (HMD.active && !HMD.mounted) { + print("Starting script, while HMD is active and not mounted..."); + goAway(); +} + + }()); // END LOCAL_SCOPE