• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Please help me with "blocks with sounds"

Games'n'Grumble

Scavenger
Hello, dear modders! I have a question about creating blocks with sounds. For example, a refrigerator emits a specific "rattling" sound and some signs emit a "bzzz" sound. But in the xml files I didn't find a direct connection between blocks and sounds. Can someone suggest how to "attach" sounds to the blocks?

 
Sounds are usually attached to blocks in Unity, AFAIK. You have a game object, and inside it is the block as well as an audio source. The audio can be looped, set to roll off based on distance, etc.

 
Cranberry Monster said:
Sounds are usually attached to blocks in Unity, AFAIK. You have a game object, and inside it is the block as well as an audio source. The audio can be looped, set to roll off based on distance, etc.
indeed! I was able to make curtains with the sound of swaying cloth, thanks :)

 
Back
Top