Jump to content
Sign in to follow this  
Kydoimos

Object Emitting Constant Sound

Recommended Posts

Hi all,

I was hoping there might be a better solution to what I have working currently. Basically, I would like to create a constant sound for the wind turbines in Arma. At the moment, I have a trigger and an invisible helipad which detects if the player is nearby and then plays a sound (it's not on a loop, it's just a really long audio file - something I would like to change!). I've also had to add a mission "Loaded" eventhandler to ensure that the sound plays when the player loads a saved game (again, it checks if the player is in the vicinity of the invisible helipad on the turbine). Obviously, this is crazy wastage! And as for the size of the audio file... !

Can anybody think of a better way to achieve this effect? The wind turbine sound needs to fade in and out with player distance, needs to play after game loads, and, preferably, be on a loop. Perhaps there's a way to edit the config for the wind turbine itself? Adding an idle engine sound or something?

Thanks in advance for any help on this - it would be great to optimise! :D

Share this post


Link to post
Share on other sites

Thanks gammadust - didn't realise you could define sound distance with playSound3D - interesting! Not quite sure how I can link it to all the wind turbines on the map though? I'd have to throw in the "loaded" eventhandlers too, as for some reason playSound3D dies after a saved game load. I'll look into it - thanks for the response :)

Edited by Kydoimos

Share this post


Link to post
Share on other sites

I confess i have not tried the playSound3D to be more precise, but here's more ideas:

- give a look at Campfire_burning_F config under A3_Structures_F_Civ_Camping for guidance on an alternate method (solves looping?)

- creating a "proxy" object and place it on the windturbines to circunvent the eventhandler (i'm assuming editing the windturbine themselves is too invasive)

Share this post


Link to post
Share on other sites

@Gammadust - hiya, matey! Got a good working solution now - I've managed to add my own custom sound and call it via the createSoundSource command - the best part is, it plays on a continuous loop and it continues after load games! :D Thanks again for your response and assistance! Always appreciated!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×