Sound event for building when used

Started by Hansenbansen, August 24, 2017, 09:40:38 AM

Previous topic - Next topic

Hansenbansen

Hey,

I'd like to implement a new, relatively simple joy building that makes a sound while it is being used. It should not have recipes, which means I cannot use the tag <soundWorking> to implement that. The only sound event for a building that I found was <ambientSound>, which keeps the sound running all the time, not what I need.
Is there a sound event tag or a way to play a sound (in C#) while the building is in use? Unfortunately, the list of sound tags in the wiki is not accessible anymore (the one here: http://rimworldwiki.com/wiki/Modding_Tutorials/Sounds) and my search in the core code didn't really help me here either.

Cheers!