mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fixed a bug where particles weren't moving with can.
This commit is contained in:
parent
9f5a3066b8
commit
f6c888599e
1 changed files with 7 additions and 2 deletions
|
@ -99,7 +99,7 @@
|
|||
|
||||
this.sprayInjector = Audio.playSound(this.spraySound, {
|
||||
position: position,
|
||||
volume: 0.1,
|
||||
volume: this.sprayVolume,
|
||||
loop: true
|
||||
});
|
||||
|
||||
|
@ -136,16 +136,21 @@
|
|||
position: position,
|
||||
emitOrientation: forwardQuat,
|
||||
});
|
||||
this.sprayInjector.setOptions({position: position});
|
||||
|
||||
this.sprayInjector.setOptions({
|
||||
position: position,
|
||||
volume: this.sprayVolume
|
||||
});
|
||||
}
|
||||
|
||||
this.preload = function(entityId) {
|
||||
this.sprayVolume = 0.1;
|
||||
this.spraying = false;
|
||||
this.entityId = entityId;
|
||||
this.resetKey = "resetMe";
|
||||
}
|
||||
|
||||
|
||||
this.unload = function() {
|
||||
if (this.paintStream) {
|
||||
Entities.deleteEntity(this.paintStream);
|
||||
|
|
Loading…
Reference in a new issue