tvpo Posted November 4, 2014 Report Share Posted November 4, 2014 can anyone help me so this actually works class CfgSounds { sounds[] = {siren}; class siren { name = "siren"; sound[] = {Scripts\sirens\siren.ogg,0.5,1}; titles[] = {}; }; }; class CfgSounds { sounds[] = { introSong }; class introSong { name="introSong"; sound[]={introSong.ogg,0.9,1}; titles[] = {}; }; }; Link to comment Share on other sites More sharing options...
0 Crude Posted November 4, 2014 Report Share Posted November 4, 2014 try quotes & backslash "\Scripts\sirens\siren.ogg" "\introSong.ogg" Link to comment Share on other sites More sharing options...
0 jahangir13 Posted November 5, 2014 Report Share Posted November 5, 2014 You cannot have the same classname twice (class CfgSounds). You define CfgSounds only once and in this class you create the other classes (introsong, siren,...). Example: class CfgSounds { //sounds[] = {}; sounds[] = { cureEffect, playerSnoring }; class playerSnoring { name="playerSnoring"; sound[]={\custom\sounds\snoring.ogg,0.9,1}; titles[] = {}; }; class cureEffect { name="cureEffect"; sound[]={\custom\sounds\cure_effect.ogg,0.9,1}; titles[] = {}; }; class lockcar { name = "lockcar"; sound[] = {\custom\sounds\lockcar.ogg,0.1,1,40}; titles[] = {}; }; class lockbeep { name = "lockbeep"; sound[] = {\custom\sounds\lockbeep.ogg,0.1,1,40}; titles[] = {}; }; }; Link to comment Share on other sites More sharing options...
Question
tvpo
can anyone help me so this actually works
Link to comment
Share on other sites
2 answers 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