Jump to content

Recommended Posts

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.

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.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...