RE: Sound... [SOLVED]

Started by , Thu 03/02/2005 22:44:53

Previous topic - Next topic

Wolverine

OK. Been through the help files a thousand times and haven't found this one. How do I go about checking whether the sound is turned on or off in the game? I want to have a line in the GUI that says the sound is on/off based on what the sound flag says and I can't find the sound flag. :(

DoorKnobHandle

Well, as far as I know there is not an official SOUNDISON-Flag.

However you can easily introduce your own...

Just add a var SOUNDISON and whenever the user changes the sound is on or off
option in the main menu or where you want it, you change that var.
Then when you play the sounds, you always ask for that var first and only play the
certain sound if it is set to 1.

You could also save the var even if the game is not running or the pc turned off by simply
saving it in an external ".dat" file.

If you need more specific help on that, just ask...

Hope I got you right and hope this helps.

Wolverine

Actually, I already get the gist of it. It's just a matter of doing it. And I don't really have the time to do so until early tomorrow morning, but thank you for explaining it to me so that I can take care of this in the morning.

SMF spam blocked by CleanTalk