[SUGGESTION] PlayerPlaySound
#1

Can you add a radius feature too it, thanks.
Reply
#2

isn't this scriptable?
Reply
#3

Quote:
Originally Posted by saiberfun
Посмотреть сообщение
isn't this scriptable?
It is. In fact it's very easy if you use IsPlayerInRangeOfPoint.
Reply
#4

Quote:
Originally Posted by -Danny-
Посмотреть сообщение
It is. In fact it's very easy if you use IsPlayerInRangeOfPoint.
No it is not, I want it so the sound can be heard more longer apart from having it at a set location.
Reply
#5

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
No it is not, I want it so the sound can be heard more longer apart from having it at a set location.
So you mean the distance, to play the sound?
Reply
#6

like it's getting more quiet the further you are away?
if so then it's still possible by having multible files which are in a range of volume and then playing them in specific ranges from loud till quiet.
Reply
#7

Quote:
Originally Posted by BlackBank3
Посмотреть сообщение
So you mean the distance, to play the sound?
yes.

Quote:
Originally Posted by saiberfun
Посмотреть сообщение
like it's getting more quiet the further you are away?
if so then it's still possible by having multible files which are in a range of volume and then playing them in specific ranges from loud till quiet.
If there was a radius it would be louder for a bigger radius.
Reply
#8

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Can you add a radius feature too it, thanks.
pawn Код:
stock PlayerPlaySoundEx(playerid,soundid,Float:x,Float:y,Float:z,Float:dis)
{
    if(IsPlayerInRangeOfPoint(playerid,dis,x,y,z))
    {
        PlayerPlaySound(playerid,soundid,x,y,z);
    }
    return 1;
}
Reply
#9

Quote:
Originally Posted by FireCat
Посмотреть сообщение
pawn Код:
stock PlayerPlaySoundEx(playerid,soundid,Float:x,Float:y,Float:z,Float:dis)
{
    if(IsPlayerInRangeOfPoint(playerid,dis,x,y,z))
    {
        PlayerPlaySound(playerid,soundid,x,y,z);
    }
    return 1;
}
But still the sound its self has a radius, if I set it at 0,0,0 it will prob fade at 2,2,2 but stop at 3,3,3 but If I do a radius of 3 then hopefully it will still be loud at 3,3,3 etc.
Reply
#10

Quote:
Originally Posted by FireCat
Посмотреть сообщение
pawn Код:
stock PlayerPlaySoundEx(playerid,soundid,Float:x,Float:y,Float:z,Float:dis)
{
    if(IsPlayerInRangeOfPoint(playerid,dis,x,y,z))
    {
        PlayerPlaySound(playerid,soundid,x,y,z);
    }
    return 1;
}
And if you go away, the sound would be still playing.

Can be scripted with OnPlayerUpdate, but a native function is much more better.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)