• Welcome Guest, The new Modme forums are here! Please visit here for all recommended information.

Adding sound when players get downed?

bubba443

Active member
Is it possible to add a sound when a player gets downed? Any links to mods/tutorials for this? Can't seem to find any.
 

eDeK

Well-known member
Code:
callback::on_spawned( &sound_when_i_downed );
Code:
function sound_when_i_downed()
{
    level flag::wait_till( "all_players_connected" );
    level flag::wait_till( "initial_blackscreen_passed" );
    
    wait 0.05;
    
    level endon( "end_game" );   
    self endon( "disconnect" );

    while(1)
    {
        self waittill( "player_downed" );
        
        self PlaySound( "YOUR_SOUND" );
        
        wait( 1 );
    }
}
 
Top