04-09-2011, 20:11
Is it possible to change the sound volume?
like:
is this possible?
like:
Code:
playSoundInSpace( sound, location )
{
org = spawn( "script_origin", location );
org.origin = location;
org playSound( sound );
foreach(player in level.players)
{
afstand = distance(location, player.origin);
switch(afstand)
{
case <10:
sound.volume = 100;
break;
case <30:
sound.volume = 60;
break;
case <50:
sound.volume = 25;
break;
case <70:
sound.volume = 10;
break;
case >70:
sound.volume = 0;
break;
}
}
wait 5;
org delete();
}
is this possible?
(08-10-2011, 12:58)Pozzuh Wrote:Se7en Wrote:Stealed, from cod4 mod ...look who's talking
[Release] Old School Mod v2.2
[Release] Scroll menu