mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 08:58:02 +02:00
use new AudioInjectionOptions format in botProceduralWayPoints
This commit is contained in:
parent
3d1bb68c72
commit
89ae8f53ba
1 changed files with 5 additions and 7 deletions
|
@ -172,13 +172,11 @@ function playRandomSound() {
|
|||
}
|
||||
|
||||
function playRandomFootstepSound() {
|
||||
|
||||
var whichSound = Math.floor((Math.random() * footstepSounds.length));
|
||||
var options = new AudioInjectionOptions();
|
||||
options.position = Avatar.position;
|
||||
options.volume = 1.0;
|
||||
Audio.playSound(footstepSounds[whichSound], options);
|
||||
|
||||
var whichSound = Math.floor((Math.random() * footstepSounds.length));
|
||||
Audio.playSound(footstepSounds[whichSound], {
|
||||
position: Avatar.position,
|
||||
volume: 1.0
|
||||
});
|
||||
}
|
||||
|
||||
// Facial Animation
|
||||
|
|
Loading…
Reference in a new issue