Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: magique on April 13, 2016, 11:08:16 AM

Title: Play Sound - Range
Post by: magique on April 13, 2016, 11:08:16 AM
I'm struggling with getting my Play Sound action to work the way I want. I have a trigger that plays a door opening animation and a creaking sound when the player enters a room. The player is maybe 20 feet away from the creaking door. The sound I have chosen is fairly loud in its original form, but when Playmaker plays it using the PlaySound action, I can barely hear it. Normally, I would use an AudioSource and adjust the 3D sound properties of min/max range so that the volume at certain distances is more to my liking. However, I don't see any way in Playmaker to adjust these parameters for the PlaySound action. Is this not possible?
Title: Re: Play Sound - Range
Post by: magique on April 13, 2016, 11:22:35 AM
Nevermind. I found a sample modified PlayRandomSound that adds spatialblend. I took that and added minDistance to it so that I can get the proper relative volume I want. If anyone else is interested, this is the post I got the modified PlayRandomSound code from.

http://hutonggames.com/playmakerforum/index.php?topic=9812.0
Title: Re: Play Sound - Range
Post by: dudebxl on April 13, 2016, 05:44:04 PM
Also on ecosystem: 'Play Audio Advance'

More options for your sound setup..
Title: Re: Play Sound - Range
Post by: magique on April 13, 2016, 05:48:46 PM
Thanks for the info. I wonder why these fundamental features aren't just part of the base Playmaker actions.