mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 15:49:24 +02:00
baton sound logging updates
This commit is contained in:
parent
493a91fa27
commit
b4e400f3aa
1 changed files with 3 additions and 3 deletions
|
@ -30,10 +30,10 @@
|
||||||
// We already have our injector so just restart it
|
// We already have our injector so just restart it
|
||||||
_this.soundInjector.restart();
|
_this.soundInjector.restart();
|
||||||
}
|
}
|
||||||
print("EBL SETTING TIMEOUT")
|
print("EBL TAKING OVER THE SOUND")
|
||||||
Entities.editEntity(_this.batonDebugModel, {visible: true});
|
Entities.editEntity(_this.batonDebugModel, {visible: true});
|
||||||
_this.playSoundInterval = Script.setInterval(function() {
|
_this.playSoundInterval = Script.setInterval(function() {
|
||||||
print("EBL RESTART");
|
print("EBL PLAY THE SOUND");
|
||||||
_this.soundInjector.restart();
|
_this.soundInjector.restart();
|
||||||
}, _this.drumSound.duration * 1000); // Duration is in seconds so convert to ms
|
}, _this.drumSound.duration * 1000); // Duration is in seconds so convert to ms
|
||||||
iOwn = true;
|
iOwn = true;
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
preload: function(entityID) {
|
preload: function(entityID) {
|
||||||
_this.entityID = entityID;
|
_this.entityID = entityID;
|
||||||
print("PRELOAD ENTITY SCRIPT!!!");
|
print("EBL PRELOAD ENTITY SCRIPT!!!");
|
||||||
baton = virtualBaton({
|
baton = virtualBaton({
|
||||||
// One winner for each entity
|
// One winner for each entity
|
||||||
batonName: "io.highfidelity.soundEntityBatonTest:" + _this.entityID
|
batonName: "io.highfidelity.soundEntityBatonTest:" + _this.entityID
|
||||||
|
|
Loading…
Reference in a new issue