Wonderlarr Posted July 16, 2020 Share Posted July 16, 2020 Hello, I need some help on how to do item sounds correctly, none of the tutorials I've found really go in depth about how to make proper item sounds, only character sounds, and I would love an explanation on how SoundEmitter actually works, I'm having trouble implementing it into my mod and if I could get an understanding of it I would probably do better. Link to comment Share on other sites More sharing options...
-LukaS- Posted July 17, 2020 Share Posted July 17, 2020 To make something be able to play a sound you have to add inst.entity:AddSoundEmitter(). To play a certain sound you have to add inst.SoundEmitter:PlaySound("sound/path"). Depending on the situation you can also swap "inst" with, for example, "owner", "worker", "attacker" etc. 1 Link to comment Share on other sites More sharing options...
Wonderlarr Posted July 17, 2020 Author Share Posted July 17, 2020 Do I need to specify which sound inside the file I want to play after I specify the path, even if there is only 1 sound in the file? Link to comment Share on other sites More sharing options...
-LukaS- Posted July 17, 2020 Share Posted July 17, 2020 Yes. 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