Kimarik Posted May 14, 2017 Report Share Posted May 14, 2017 Did you mean like this juandayz Spoiler // Vehicle Sounds _isbike = typeOf _vehicle in ["MMT_Civ"]; if (_inVehicle && _isbike && (driver _vehicle == player)) then { if (s_player_soundbike < 0) then { dayz_sounds = _vehicle; s_player_soundbike = dayz_sounds addaction[("<t color=""#F7D708"">" + ("Play Song") +"</t>"),"scripts\vehiclesound\soundbike.sqf"]; }; } else { dayz_sounds removeAction s_player_soundbike; s_player_soundbike = -1; }; if (_inVehicle && (driver _vehicle == player)) then { if (s_player_soundcar < 0) then { dayz_sounds = _vehicle; s_player_soundcar = dayz_sounds addaction[("<t color=""#F7D708"">" + ("Play Song") +"</t>"),"scripts\vehiclesound\soundvehicle.sqf"]; }; } else { dayz_sounds removeAction s_player_soundcar; s_player_soundcar = -1; }; if (_inVehicle && {_vehicle isKindOf "Air"} && (driver _vehicle == player)) then { if (s_player_soundair < 0) then { dayz_sounds = _vehicle; s_player_soundair = dayz_sounds addaction[("<t color=""#F7D708"">" + ("Play Song") +"</t>"),"scripts\vehiclesound\soundair.sqf"]; }; } else { dayz_sounds removeAction s_player_soundair; s_player_soundair = -1; }; //Vehicle Sounds End Spoiler class CfgSounds { flysound[] = { soundbike,soundvehicle,soundair }; class soundbike { name="soundbike"; sound[]={sounds\BycicleRace.ogg,0.9,1}; titles[] = {}; }; class soundvehicle { name="soundvehicle"; sound[]={sounds\HighwayToHell.ogg,0.9,1}; titles[] = {}; }; class soundair { name="soundair"; sound[]={sounds\Top Gun.ogg,0.9,1}; titles[] = {}; }; }; juandayz 1 Link to comment Share on other sites More sharing options...
gernika Posted May 19, 2017 Report Share Posted May 19, 2017 scuse my stupid question,, do you use some kind of program to convert audio format to ogg? Link to comment Share on other sites More sharing options...
Anhor Posted May 19, 2017 Author Report Share Posted May 19, 2017 Converter Link to comment Share on other sites More sharing options...
Anhor Posted June 2, 2017 Author Report Share Posted June 2, 2017 Update! Referring to @Kimarik error in its RPT, that was my mistake. I forgot to say please add s_player_sounds = -1; into your custom variables.sqf Link to comment Share on other sites More sharing options...
_Lance_ Posted August 23, 2017 Report Share Posted August 23, 2017 Love this little mod, But I want to be able to stop the audio and also keep it from playing it overlapping if the player spams the play button - did anyone ever come up with the right code to make an off button or at least keep the audio from being able to overlap if played more than once? Subscribing.... Link to comment Share on other sites More sharing options...
Anhor Posted August 24, 2017 Author Report Share Posted August 24, 2017 @_Lance_ Sry bro, not yet. Juandayz try it, but it seems it produces errors while playing. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now