SE JavaScript command

Hello guys,
so i want to play SE using JavaScript, i found this command AudioManager.playSe( refer to sound object above ); and i used it like this: AudioManager.playSe(name of the sound, 90, 100, 0); but it did't work 🙁
The sound is located on the SE file.
What is the mistake i did ?
Thanks a lot.
You need to make it aJavascript object.
Code:
AudioManager.playSe({name: name, volume: 90, pan: 0, pitch: 100})
You need to make it aJavascript object.
Code:
AudioManager.playSe({name: name, volume: 90, pan: 0, pitch: 100})[CODE]
I did like this, but it keeps telling me that the sound name is undefined although it is inside the SE file 🙁
The name is case sensitive and should be written without its sound format. Works well on my end.

For example

Code:
AudioManager.playSe({name: "Buzzer1", volume: 90, pan: 0, pitch: 100})
The name is case sensitive and should be written without its sound format. Works well on my end.

For example

Code:
AudioManager.playSe({name: "Buzzer1", volume: 90, pan: 0, pitch: 100})
Thanks a lot :uwink:

Original thread: https://forums.rpgmakerweb.com/threads/se-javascript-command.107628/