mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:06:02 +02:00
Fix success sound for tutorial
This commit is contained in:
parent
8d2f558ac3
commit
80b53a30d7
1 changed files with 3 additions and 0 deletions
|
@ -367,6 +367,7 @@ stepNearGrab.prototype = {
|
||||||
}
|
}
|
||||||
if (channel == "Entity-Exploded") {
|
if (channel == "Entity-Exploded") {
|
||||||
print("TUTORIAL: Got entity-exploded message");
|
print("TUTORIAL: Got entity-exploded message");
|
||||||
|
playSuccessSound();
|
||||||
var data = parseJSON(message);
|
var data = parseJSON(message);
|
||||||
//if (data.entityID == this.boxID) {
|
//if (data.entityID == this.boxID) {
|
||||||
this.finished = true;
|
this.finished = true;
|
||||||
|
@ -459,6 +460,7 @@ stepFarGrab.prototype = {
|
||||||
}
|
}
|
||||||
if (channel == "Entity-Exploded") {
|
if (channel == "Entity-Exploded") {
|
||||||
print("TUTORIAL: Got entity-exploded message");
|
print("TUTORIAL: Got entity-exploded message");
|
||||||
|
playSuccessSound();
|
||||||
var data = parseJSON(message);
|
var data = parseJSON(message);
|
||||||
if (data.entityID == this.boxID) {
|
if (data.entityID == this.boxID) {
|
||||||
this.finished = true;
|
this.finished = true;
|
||||||
|
@ -818,6 +820,7 @@ function startTutorial() {
|
||||||
}
|
}
|
||||||
//location = "/tutorial_begin";
|
//location = "/tutorial_begin";
|
||||||
location = "/tutorial";
|
location = "/tutorial";
|
||||||
|
MyAvatar.shouldRenderLocally = false;
|
||||||
startNextStep();
|
startNextStep();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue