mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 19:42:36 +02:00
update birdSongs to new injector hash format
This commit is contained in:
parent
12e15eab6a
commit
d4b74e6ecf
1 changed files with 4 additions and 4 deletions
|
@ -33,13 +33,13 @@ function maybePlaySound(deltaTime) {
|
|||
// Set the location and other info for the sound to play
|
||||
var whichBird = Math.floor(Math.random() * birds.length);
|
||||
//print("playing sound # " + whichBird);
|
||||
var options = new AudioInjectionOptions();
|
||||
var position = { x: lowerCorner.x + Math.random() * (upperCorner.x - lowerCorner.x),
|
||||
y: lowerCorner.y + Math.random() * (upperCorner.y - lowerCorner.y),
|
||||
z: lowerCorner.z + Math.random() * (upperCorner.z - lowerCorner.z) };
|
||||
options.position = position;
|
||||
options.volume = BIRD_MASTER_VOLUME;
|
||||
//
|
||||
var options = {
|
||||
position: position,
|
||||
volume: BIRD_MASTER_VOLUME
|
||||
};
|
||||
var entityId = Entities.addEntity({
|
||||
type: "Sphere",
|
||||
position: position,
|
||||
|
|
Loading…
Reference in a new issue