• ambient_generic problem
    3 replies, posted
Hey, Quick question here. I am making an ambient_generic and have loaded a custom mp3 sound which is playing at the click of a button. I simply want it to execute the sound at the click of the button and then stop it as soon as the sound is played once. I have set the settings multiple times, "Start Silent" and "Is NOT Looped" are both checked. I have it so that OnPressed, "ambientgeneric" will PlaySound however even with Is NOT Looped checked, the sound always loops. I have tried multiple fixes including making the button have a delay to then execute the StopSound and also to set the Volume to 0, however these attempts have failed and the sound still loops. Any solution? I must be doing something wrong
Nevermind, the solution was that I needed to simply keep "Is NOT Looped" checked for some odd reason. Anyways, now all my brush entities (func_door, func_tracktrain, func_areaportal) have seemingly been turned back into brushes. The heck caused that? I click ToEntity and once again turn them into their respective func but it just turns back to a basic brush as soon as I click Apply.
Is-looped just tells the entity to take in "StopSound", meaning that the shound should play until it's told to stop... When you select "Is NOT Looped", you are telling the entity it will never receive a "StopSound" command. It has nothing to do with the sound itself - The loop points of the sound file will tell it whether it loops or not. That flag is just for the compiler.
[QUOTE=Nevinator8;50493754] Anyways, now all my brush entities (func_door, func_tracktrain, func_areaportal) have seemingly been turned back into brushes. The heck caused that? I click ToEntity and once again turn them into their respective func but it just turns back to a basic brush as soon as I click Apply.[/QUOTE] You pressed the IG button on the top menu bar
Sorry, you need to Log In to post a reply to this thread.