maxman
Well-known member
I know that using
What I'm trying to do is to play like a regular sound like
hitfx
and sound
work perfectly in any animation, but I want to make an alternative by putting a sound sample under any specific animation in scripts. The sound sample I'm talking about is playsample
. However, every time I put playsample
with a priority value of 1, it results with an annoying distortion as I adjusted some parameters in it. That sound distortion doesn't stop there until it goes back to anim idle.
C-like:
if(vAniID == openborconstant("ANI_FREESPECIAL")
|| vAniID == openborconstant("ANI_ATTACK3")
|| vAniID == openborconstant("ANI_FREESPECIAL6")){
void MPSound = loadsample("data/sounds/common/punch1.wav");
//unloadsample(MPSound);
playsample(MPSound, 1, 43, 43, 10000000000, 0);
//playsample(ID, priority, left_volume, right_volume, speed, loop);
}
What I'm trying to do is to play like a regular sound like
sound
. How can I make the sound go natural without distortion?