[SUGGESTION] PlayerPlaySound -
Kyle - 12.09.2011
Can you add a radius feature too it, thanks.
Re: [SUGGESTION] PlayerPlaySound -
saiberfun - 12.09.2011
isn't this scriptable?
Re: [SUGGESTION] PlayerPlaySound -
Danny - 12.09.2011
Quote:
Originally Posted by saiberfun
isn't this scriptable?
|
It is. In fact it's very easy if you use IsPlayerInRangeOfPoint.
Re: [SUGGESTION] PlayerPlaySound -
Kyle - 12.09.2011
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.
Re: [SUGGESTION] PlayerPlaySound -
BlackBank - 12.09.2011
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?
Re: [SUGGESTION] PlayerPlaySound -
saiberfun - 12.09.2011
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.
Re: [SUGGESTION] PlayerPlaySound -
Kyle - 12.09.2011
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.
Re: [SUGGESTION] PlayerPlaySound -
FireCat - 12.09.2011
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;
}
Re: [SUGGESTION] PlayerPlaySound -
Kyle - 12.09.2011
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.
Re: [SUGGESTION] PlayerPlaySound -
IstuntmanI - 12.09.2011
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.