PlaySoundPos


Plays a sound at a position. Syntax:

channel=PlaySoundPos(wav, position, volume, minrad, maxrad, flags);

wav: This is a reference to the wav file you want to play; this can be a variable that is assigned to a wav in the symbols or the reference returned by LoadSound().

position: This is the position to play the sound at.

volume: This is the 0-1 flex volume for the sound.

minrad: The minimum radius is the distance from the position at which the sound can be heard at full volume.

maxrad: The maximum radius is the distance from the position at which you can hear the sound. The sound volume will be reduced as you move farther away from the position between the min and max radii.

flags: These are the Sound Flags to play the sound with.