Source SDK

Source SDK

JpFurriel Aug 6, 2017 @ 2:24pm
FadeIn, fadeOut ambient_generic
how do i make an ambient_generic fade_out with a trigger?
ps: The sound is looped and don't start silent.
< >
Showing 1-5 of 5 comments
Moltard Aug 6, 2017 @ 2:39pm 
You can decrease the Volume.

Like:

OnStartTouch > ambient generic name > Volume > 8 > Delay=0
OnStartTouch > ambient generic name > Volume > 6 > Delay=2
OnStartTouch > ambient generic name > Volume > 4 > Delay=4
OnStartTouch > ambient generic name > Volume > 2 > Delay=6
OnStartTouch > ambient generic name > Volume > 0 > Delay=8

During 8 seconds, the sound will slowly fade.

After 8 seconds, the sound will be turned off.
You can add to be safe:
OnStartTouch > ambient generic name > StopSound > > Delay=8.1

So the sound is totally stopped
JpFurriel Aug 6, 2017 @ 2:46pm 
Originally posted by B.n.B AlcyToronto:
By in/out. Trigger -> add output -> on start touch -> ambient generic name -> fade in or out.
this metody doesn't work, ingame it says that: "ambient_generic (corridor2, FadeOut) doesn't match type from trigger_once O"
JpFurriel Aug 6, 2017 @ 2:48pm 
Originally posted by Moltard:
You can decrease the Volume.

Like:

OnStartTouch > ambient generic name > Volume > 8 > Delay=0
OnStartTouch > ambient generic name > Volume > 6 > Delay=2
OnStartTouch > ambient generic name > Volume > 4 > Delay=4
OnStartTouch > ambient generic name > Volume > 2 > Delay=6
OnStartTouch > ambient generic name > Volume > 0 > Delay=8

During 8 seconds, the sound will slowly fade.

After 8 seconds, the sound will be turned off.
You can add to be safe:
OnStartTouch > ambient generic name > StopSound > > Delay=8.1

So the sound is totally stopped
i could do this, but i have too many sounds in map. There need to be a way more practical.
Originally posted by Rick Rouldman:
Originally posted by B.n.B AlcyToronto:
By in/out. Trigger -> add output -> on start touch -> ambient generic name -> fade in or out.
this metody doesn't work, ingame it says that: "ambient_generic (corridor2, FadeOut) doesn't match type from trigger_once O"

Yes mate, I've checked it an a test map and doesn't work, sorry. BTW, I'm wandering WHY there are commands in the in/out list if they are not working, and WHY the game console sees the error but Hammer's Alt+P doesn't... I think the only way is the one said by Moltard.
JpFurriel Aug 6, 2017 @ 2:56pm 
Originally posted by B.n.B AlcyToronto:
Originally posted by Rick Rouldman:
this metody doesn't work, ingame it says that: "ambient_generic (corridor2, FadeOut) doesn't match type from trigger_once O"

Yes mate, I've checked it an a test map and doesn't work, sorry. BTW, I'm wandering WHY there are commands in the in/out list if they are not working, and WHY the game console sees the error but Hammer's Alt+P doesn't... I think the only way is the one said by Moltard.
oh sh.it
Last edited by JpFurriel; Aug 6, 2017 @ 2:57pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Aug 6, 2017 @ 2:24pm
Posts: 5