Games'n'Grumble Posted July 3, 2022 Share Posted July 3, 2022 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? Link to comment Share on other sites More sharing options...
Cranberry Monster Posted July 4, 2022 Share Posted July 4, 2022 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. 2 Link to comment Share on other sites More sharing options...
Games'n'Grumble Posted July 7, 2022 Author Share Posted July 7, 2022 On 7/4/2022 at 9:22 AM, 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 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now