| PlaySoundPosEx.zip | JK Basic Complient
An advanced and optimized PlaySound cog that only plays the sound when its origin is within earshot (max distance). Also, it will muffle the sound if it or the view is underwater. Ok, maybe not muffle but bring the pitch down by 50%
(so don't mix music and water with this thing).
And to top it all off, the sound also pitches according to the reletive moving speed of the viewport and the sound's origin (like a passing car).
Note that I say viewport rather than player. This is because this will also work with cinematic cameras that fly about.
It also features remote control via SendMessageEx() and SendTrigger(). See manual for details.
| 7 216.00 bytes | Example0
|