mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
simple baton
This commit is contained in:
parent
dfffe5f431
commit
ad5a111b85
1 changed files with 0 additions and 9 deletions
|
@ -3,7 +3,6 @@
|
|||
Script.include("../../libraries/virtualBaton.js");
|
||||
|
||||
var baton;
|
||||
var iOwn = false;
|
||||
|
||||
var _this;
|
||||
BatonSoundEntity = function() {
|
||||
|
@ -35,7 +34,6 @@
|
|||
_this.playSoundInterval = Script.setInterval(function() {
|
||||
_this.soundInjector.restart();
|
||||
}, _this.drumSound.duration * 1000); // Duration is in seconds so convert to ms
|
||||
iOwn = true;
|
||||
_this.soundIntervalConnected = true;
|
||||
}
|
||||
|
||||
|
@ -47,7 +45,6 @@
|
|||
_this.soundIntervalConnected = false;
|
||||
print("EBL CLEAR INTERVAL")
|
||||
}
|
||||
iOwn = false;
|
||||
Entities.editEntity(_this.batonDebugModel, {visible: false});
|
||||
// hook up callbacks to the baton
|
||||
baton.claim(startUpdate, stopUpdateAndReclaim);
|
||||
|
@ -55,12 +52,6 @@
|
|||
|
||||
BatonSoundEntity.prototype = {
|
||||
|
||||
update: function() {
|
||||
if (iOwn === false) {
|
||||
return;
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
preload: function(entityID) {
|
||||
_this.entityID = entityID;
|
||||
|
|
Loading…
Reference in a new issue