PlaySoundThing


Plays the sound at the position of a thing. Syntax:

channel=PlaySoundThing(wav, thing, volume, minrad, maxrad, flags);

wav: This the wav file to play. This is usually a variable defined in the symbols section, but you can also use LoadSound().

thing: This is the thing that the sound will be played at. To make the sound move with the thing, use the 0x80 Sound Flag.

volume: This is the 0-1 flex volume.

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.