How come you can't hear the explosion sound inside of an interior?
#2

Make sure the explosion type to be created is a type which creates sound, however, if you can't get it to work after changing the type you can use the following snippet.

pawn Код:
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
foreach(Player, i)
{
    // If is near the playerid within 20 range, and their interior is the same..
    if (IsPlayerInRangeOfPoint(i, 20, X, Y, Z) && (GetPlayerInterior(i) == GetPlayerInterior(playerid)))
    {
        // Play sound for 'i'.
    }
    return 0;
}
You might want to re-write it!
Reply


Messages In This Thread
How come you can't hear the explosion sound inside of an interior? - by grand.Theft.Otto - 18.04.2011, 20:18
Re: How come you can't hear the explosion sound inside of an interior? - by admantis - 18.04.2011, 20:42
Re: How come you can't hear the explosion sound inside of an interior? - by grand.Theft.Otto - 19.04.2011, 01:15

Forum Jump:


Users browsing this thread: 1 Guest(s)