From bfc25767edc1c7732fc6401f9a3f4d96471c0bfc Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 11 Nov 2014 10:57:07 -0800 Subject: [PATCH] repairs to bot_procedrual for hash injector options format --- examples/bot_procedural.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/bot_procedural.js b/examples/bot_procedural.js index f445162038..80f83fcdfa 100644 --- a/examples/bot_procedural.js +++ b/examples/bot_procedural.js @@ -134,13 +134,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 **********************************