may I see your mod.csv plus I want to know if that "iprintln" is showing you text.
Sure, this is the mod.csv Regarding if the iprintIn, the text does show if I try to play a radio while the other one is playing. - ERAWEX
Title: Re: Radio sounds not playing in game
Post by: gympie6 on April 06, 2020, 08:49:57 pm
Is your radio a scriptmodel?
Title: Re: Radio sounds not playing in game
Post by: ERAWEX on April 06, 2020, 09:02:54 pm
Yes it is with the kvp "targetname" "radio1/2".
Title: Re: Radio sounds not playing in game
Post by: Vertasea on April 06, 2020, 09:10:43 pm
Step one don't follow ZK tutorials lol he had some bad habits with scripting :) ================================================================
In radiant add a trigger_use give it this kvp Also give it this kvp ( radio1 is the sound alias name for the sound you want to play ) You can copy paste as many of these as you want and give them all different script_sound kvp's SCRIPT: Open mapname.gsc and thread this in main() At the bottom of mapname.gsc add this Make sure you have your sound converted correctly if you have to just reconvert it if this doesn't work, I just tested it and it works 100%. If you have any questions please let me know.
Title: Re: Radio sounds not playing in game
Post by: gympie6 on April 06, 2020, 09:40:42 pm
Alright but in your code it's: and in radiant it's actually: Check your kvp's and scripts again if something doesn't work. Or use this to check if your radio can be found:
Title: Re: Radio sounds not playing in game
Post by: ERAWEX on April 06, 2020, 09:46:50 pm
Alright but in your code it's: and in radiant it's actually: Check your kvp's and scripts again if something doesn't work. Or use this to check if your radio can be found:
My bad, I meant that I have two differient radios. The first one has the kvp "radio1" and the second one "radio2". The game does recognise the radios and the trigger can be activated but the sound/music does not play.
Title: Re: Radio sounds not playing in game
Post by: gympie6 on April 06, 2020, 09:58:59 pm
It can be a few things: 1, I am not sure if your soundalias is right, if you aren't using a default one then pick one or use the one below the reply. 2, The range is really low, set it to 8000 or something. 3, You can also try this: For one of my maps I used this soundalias to make it working, you can copy it if you like: I also got a fight before with sounds... Hard to say what it is. I hope this will help you.
Title: Re: Radio sounds not playing in game
Post by: ERAWEX on April 06, 2020, 10:03:36 pm
It can be a few things: 1, I am not sure if your soundalias is right, if you aren't using a default one then pick one or use the one below the reply. 2, The range is really low, set it to 8000 or something. 3, You can also try this: For one of my maps I used this soundalias to make it working, you can copy it if you like: I also got a fight before with sounds... Hard to say what it is. I hope this will help you.
Will give that a try! Thank you very much for your help it is greatly appreciated. ERAWEX