mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-09 23:04:47 +02:00
Update tutorialStartZone to send start to parent immediately
This commit is contained in:
parent
504295cdcf
commit
1592394d6a
1 changed files with 2 additions and 1 deletions
|
@ -19,13 +19,14 @@
|
|||
var parentID = Entities.getEntityProperties(self.entityID, 'parentID').parentID;
|
||||
print("TutorialStartZone | Parent ID is: ", parentID);
|
||||
if (parentID) {
|
||||
print("TutorialStartZone | Entered the tutorial start area");
|
||||
print("TutorialStartZone | Sending start");
|
||||
Entities.callEntityMethod(parentID, 'start');
|
||||
} else {
|
||||
print("TutorialStartZone | ERROR: No parent id found on tutorial start zone");
|
||||
}
|
||||
}
|
||||
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 VR headset and hand controllers.");
|
||||
|
|
Loading…
Reference in a new issue