View Full Version : Make my script do sounds
marc2333
12-12-2012, 03:46 AM
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
playsound function? never used it but ive seen it been used :P
Rezozo
12-12-2012, 04:05 AM
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
12-12-2012, 04:18 AM
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
12-12-2012, 04:35 AM
yeah check out my sally hunter
Coh3n
12-12-2012, 04:49 AM
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
12-12-2012, 05:02 AM
thanks ! :)
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.