Need help with ambient_generic Created 5 years ago2018-11-28 17:05:38 UTC by NiX14 NiX14

Created 5 years ago2018-11-28 17:05:38 UTC by NiX14 NiX14

Posted 5 years ago2018-11-28 17:05:38 UTC Post #341341
Hey guys, so im making a map for cs go, my problem is with ambient_generic, i put it into the level, choose the sound i want it to play and nothing happens, i couldn't find information about this anywhere.
Posted 5 years ago2018-11-28 20:49:52 UTC Post #341342
Do you want the sound to loop by itself, or do you want it to play only after a certain trigger was activated, or something else?
We need more info for that.

In the worst-case scenario, you can use a logic_timer, which will call the ambient_generic's PlaySound() function, every duration of the sound (e.g. every 5 seconds).
The ambient_generic's flags should be like this:

Play everywhere - up to you
Start Silent - check
Is not looped - check

Lastly, I'm not entirely sure about this one, but ambient_generic should only be able to playback mono sounds.
Admer456 Admer456If it ain't broken, don't fox it!
Posted 5 years ago2018-11-29 14:40:22 UTC Post #341350
Yes i want to loop it, im going to try using logic timer now, thank you for response, and sorry for not enough info, i made the thread really fast.
Posted 5 years ago2018-11-30 01:24:49 UTC Post #341356
also double check your paths for the sound.
Posted 5 years ago2018-11-30 14:34:01 UTC Post #341358
If you are adding a custom sound that you want to loop, you need to ensure that it also has cue points. These are embedded in the audio file itself. Same is true for Source so you can follow this guide: https://developer.valvesoftware.com/wiki/Looping_a_Sound
monster_urby monster_urbyGoldsourcerer
Posted 5 years ago2018-11-30 17:25:04 UTC Post #341361
Im using a sound that i know is looped for a fact beacuse its used in another map where it loops.
You must be logged in to post a response.