AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help Please (https://forums.alliedmods.net/showthread.php?t=57590)

awwhailnaw 07-07-2007 16:47

Help Please
 
Ok im working on a radio mod for a carmod and i need to know how would i make it so when i get out of the car all the CHAN_STREAM sounds from the radio turn off?

Zenith77 07-07-2007 18:08

Re: Help Please
 
In emit_sound() pass '(1<<5)' into the flags argument.

Example:
Code:

emit_sound(id, CHAN_STREAM, "sounds/gaben.wav", VOL_NORM,  ATTN_NORM, (1<<5), PITCH_NORM);

awwhailnaw 07-07-2007 19:21

Re: Help Please
 
thanks much


All times are GMT -4. The time now is 21:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.