Scripts / stopping a sound in progress?

Author
Message
Bolt Action Gaming
GameGuru Tool Maker
11
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 20th Oct 2014 03:35 Edited at: 21st Oct 2014 01:44
so... is there a way to stop a sound in progress?



I've got a bit of code for lightning and flickering lights but it's stopping the sound mid-stream and starting a new one.

solved see below

I'm not using 'destroy(e)'



Instead I'm just basically using Playsound(e) inside of a straight if statement with some randomization thrown in.



I'd post my code but I want to clean it up and put it up on the store as my first offering.



Thanks

Please check out my reviews blog

http://fpscreloadedreview.blogspot.com
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 20th Oct 2014 10:22
StopSound(entity index,slot) - stop the sound stored in the specified slot .

http://fpscrforum.thegamecreators.com/?m=forum_view&t=208970&b=2&msg=2490403#m2490403

3com
PM
Bolt Action Gaming
GameGuru Tool Maker
11
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 20th Oct 2014 14:26
Ah excellent. Thanks dude
Can't wait to try this tonight!

Might also try PlaySoundIfSilent as well, per your link. That might work better but I suspect it'll come down to trial and error.

Please check out my reviews blog

http://fpscreloadedreview.blogspot.com
Bolt Action Gaming
GameGuru Tool Maker
11
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 20th Oct 2014 23:39
Got it, thanks man

Please check out my reviews blog

http://fpscreloadedreview.blogspot.com
Bolt Action Gaming
GameGuru Tool Maker
11
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 21st Oct 2014 00:10 Edited at: 21st Oct 2014 00:13
Video - sorry about the quality. My pc is lackluster in a lot of ways.

https://www.youtube.com/watch?v=GalZlW3uJ4k



[video=youtube]http://www.youtube.com/v/GalZlW3uJ4k[/video]



I cannot, for the life of me, figure out how to embed a vid >_>

Please check out my reviews blog

http://fpscreloadedreview.blogspot.com
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 21st Oct 2014 14:55
You Just need the bolded number, IE: " GalZlW3uJ4k " . Without quotes, of course, enclosed in YouTube tag.



Very nice vid.
glad to help.

3com
PM
Bolt Action Gaming
GameGuru Tool Maker
11
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 21st Oct 2014 17:35
Thanks for the heads up/assist. Glad you liked it. I'm planning on polishing this piece up and putting it up for like 50 points or something reasonably cheap soon. Further weather effects will come later.

Please check out my reviews blog

http://fpscreloadedreview.blogspot.com
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 21st Oct 2014 21:10
You are wellcome
PM

Login to post a reply

Server time is: 2024-12-21 17:56:14
Your offset time is: 2024-12-21 17:56:14