SRL Archive - Help

Make my script do sounds


marc2333

2012-12-11 22:46:20

Hello,

Is there a way i can code something so my script make my computer do sounds ?

Like if finds something, the computer would do a little sound ?

Anything you could think of ?

Thanks,
Marc

Olly

2012-12-11 22:50:02

playsound function? never used it but ive seen it been used :P

Rezozo

2012-12-11 23:05:11

I know in pascal, there is a way to 'beep'. And if you do it in a certain loop, then in a certain order, you can make an awesome little song for your Computer Science 1 class in Sophmore year…
Just saying :D
~Rez

Prometheus

2012-12-11 23:18:37

I personally never used this, but I think a guide for it can be found here.

http://villavu.com/forum/showthread.php?p=1127415#post1127415

EDIT: Oh, thought this said how to detect sounds in scripts. I'm blind, lol… I'm sure Ashaman has one in his Hunter script. Perhaps you could look that over :D

Ashaman88

2012-12-11 23:35:08

yeah check out my sally hunter

Coh3n

2012-12-11 23:49:44


playSound(scriptPath + 'soundfile.wav');
Place soundfile.wav in the same folder as your script and you're good to go. Keep in mind that as far as I know, it can be any type of sound file (doesn't have to be .wav).

marc2333

2012-12-12 00:02:56

thanks ! :)