Playing a .wav file using scripts

Description: Have idea for a script, but you can't make it? Post it here!
Moderators: Lx Xzit, Yoshi021, 5438A38A, Moderators, Semi-moderatos

Bigadre
Topic author, Duke
Duke
Avatar
Bigadre
Topic author, Duke
Duke
Age: 18
Reputation: 7
Posts: 124
Joined: 30 Jan 2018
Location: The dream star
YouTube

Post #1by Bigadre » 28 May 2018, 10:43

is there a possible way to play a wav file using scripts?
-No interesting comments here-

Eri7 M
Count
Count
Avatar
Eri7 M
Count
Count
Age: 17
Reputation: 77
Posts: 269
Joined: 19 Dec 2016
Location: Germany , Bonn

Post #2by Eri7 » 28 May 2018, 14:47

Yes with Audioset.
Join the discord server about Nova Projects.
Image

I support:
Image

Bigadre
Topic author, Duke
Duke
Avatar
Bigadre
Topic author, Duke
Duke
Age: 18
Reputation: 7
Posts: 124
Joined: 30 Jan 2018
Location: The dream star
YouTube

Post #3by Bigadre » 28 May 2018, 19:34

Eri7 wrote:Yes with Audioset.

When i tried audioset, it played wart's bubble sound instead of the .wav file
-No interesting comments here-

Yave Yu M
Marquis
Marquis
Avatar
Yave Yu M
Marquis
Marquis
Age: 23
Reputation: 36
Posts: 181
Joined: 25 Jan 2016

Post #4by Yave Yu » 15 Oct 2018, 13:44

First you need to load SFX, use Call AudioSet(1,ID,0,"Your Filename"), the ID can be more than 92. After load SFX, use Call AudioSet(2,ID,0,"") to play, leave "" blank.
Visit my YouTube channel Yave Yu!

Lx Xzit M
Moderator
Moderator
Avatar
Lx Xzit M
Moderator
Moderator
Reputation: 219
Posts: 500
Joined: 9 Nov 2015
Website

Post #5by Lx Xzit » 16 Oct 2018, 7:27

example loading a sound effect:
call audioset(1, 99, 0, "\myCustomSong.wav")

to play it just use the ID assigned to it, in this case 99.

(Worth to note that in the given example the sound effect is located in the same folder as the .lvl file, so if you put it inside the graphics' folder you should specify it in the filepath)
[size=100][b]VISIT MY YOUTUBE CHANNEL![/b] [url=https://www.youtube.com/channel/UC_AcXEExdYtaydxcCVPSGoQ]LX XZIT[/url][/size]
[size=100]Join our 38A Discord server! [url= https://discord.gg/7hCmNBE]CLICK HERE[/url][/size]

Bigadre
Topic author, Duke
Duke
Avatar
Bigadre
Topic author, Duke
Duke
Age: 18
Reputation: 7
Posts: 124
Joined: 30 Jan 2018
Location: The dream star
YouTube

Thanks

Post #6by Bigadre » 17 Oct 2018, 9:51

Thanks for the help :)
-No interesting comments here-


Return to “Script requests”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest