I am trying to add a script that toggles environment/ambient sounds on/off and, another that toggles grass on/off, to thedukes custom GUI menu:
I managed to get 2 different scripts to work for toggling grass on/off, but I'd like it to be in a single script so it's only 1 button on the menu, instead of 2.
so now I just have 2 buttons. 1 that sets terrain grid to 50, and the other to 25. I'm not even sure if that's how an if else is supposed to look, since I haven't done sql before.
I've had no luck in figuring out how to enable/disable ambient sounds.
Question
potatochimp
I am trying to add a script that toggles environment/ambient sounds on/off and, another that toggles grass on/off, to thedukes custom GUI menu:
I managed to get 2 different scripts to work for toggling grass on/off, but I'd like it to be in a single script so it's only 1 button on the menu, instead of 2.
I've tried this, but with no success:
so now I just have 2 buttons. 1 that sets terrain grid to 50, and the other to 25. I'm not even sure if that's how an if else is supposed to look, since I haven't done sql before.
I've had no luck in figuring out how to enable/disable ambient sounds.
Link to comment
Share on other sites
1 answer to this question
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