Crook4Money Posted September 1, 2017 Posted September 1, 2017 If you create a command to play a sound how do you stop the sound from being played again and overlapping? Basically asking how do you deny a command that is already active.
ForLaXPy Posted September 1, 2017 Posted September 1, 2017 its simple if you want to stop the sound make a function of it and use a command handler function stopMySound() stopSound( thesound ) end addCommandHandler ( "stops", stopMySound )
Crook4Money Posted September 1, 2017 Author Posted September 1, 2017 I meant deny a command as in active command not sound. Probably shouldn't have put "Sounds", but that's what I'm trying to use it for. For example if you play "sound" using command "play" If you used the command "play" again it would duplicate the sound, triplicate, ect. which is what I'd be trying to prevent.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now