Jump to content

Some problems with disablecontrolaction


justgabri

Recommended Posts

Fine, now works!

But, i have another problem now. I am trying to stream sounds when the player press the key for the seatbelt. I am using this method, but it doesn't work.

 

function playSounds(file) {
Audio = new Audio(file);
Audio.volume = 1;
Audio.play();
}
 
And then this to call the function: 
playSounds("html/sounds/buckle.ogg");
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...