|
Post by MS_SF on Nov 4, 2016 9:56:18 GMT
Hey there,
i have a custom event that gets triggered by code. I set the Retrigger Limit Mode to Time Based and want to change the value of "Min Seconds Between" from code. How can i do that?
Cheers
|
|
|
Post by DarkTonic Dev on Nov 4, 2016 23:17:09 GMT
I'm not seeing a Retrigger Limit Mode in the Custom Event settings. Please show me a screen shot of what you're talking about.
|
|
|
Post by MS_SF on Nov 15, 2016 11:11:09 GMT
|
|
|
Post by DarkTonic Dev on Nov 16, 2016 0:18:37 GMT
Sure, use this code.
MasterAudio.GrabGroup("YourSoundGroupName").minimumTimeBetween = 2f; // put your new "Min Seconds Between" where 2f is.
|
|
|
Post by MS_SF on Nov 17, 2016 9:10:09 GMT
Thank you for reply It's working beautiful, so thank you very much At first i thought it's not working since my sound-group wasn't changed, but the sound stopped to play! (Entered the wrong name of the group in the code) That was kinda weird since my sound was not playing anymore AND the console said that it was not able to find the group. But how could it be possible to disable the sound but not find it!? Anyway, thanks again Cheers
|
|
|
Post by DarkTonic Dev on Nov 17, 2016 17:01:07 GMT
Seems impossible...don't know. Didn't happen when I tried it.
|
|