Raised This Month: $51 Target: $400
 12% 

Select Random Sound?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CowGod
Senior Member
Join Date: Feb 2015
Old 06-13-2016 , 18:03   Select Random Sound?
Reply With Quote #1

How can I select a random sound during EmitSoundToAllAny?
CowGod is offline
Send a message via Skype™ to CowGod
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 06-13-2016 , 18:08   Re: Select Random Sound?
Reply With Quote #2

What do you mean by
Quote:
Originally Posted by CowGod View Post
during EmitSoundToAllAny?
?
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
CowGod
Senior Member
Join Date: Feb 2015
Old 06-13-2016 , 18:31   Re: Select Random Sound?
Reply With Quote #3

I have a list of sounds, if I am trying to make it so 1 command (sm_test) triggers the sound but it randomizes which sound plays so it's not always the same sound playing.
CowGod is offline
Send a message via Skype™ to CowGod
blaacky
Senior Member
Join Date: Oct 2012
Old 06-13-2016 , 18:35   Re: Select Random Sound?
Reply With Quote #4

You store a list of sounds to an array/adt_array and use GetRandomInt
blaacky is offline
CowGod
Senior Member
Join Date: Feb 2015
Old 06-13-2016 , 21:37   Re: Select Random Sound?
Reply With Quote #5

Thanks blaacky
CowGod is offline
Send a message via Skype™ to CowGod
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode