#Question about CustomSounds
12 messages · Page 1 of 1 (latest)
Yes but you will have to do a bit of coding to get them to play
That's fine, I expected that to be a requirement. Are there more addons/programs I'll need to add code or can I just use notepad++ & CustomSounds?
You could do it with notepad++ but I highly recommend getting Visual Studio. You will need to install some more tools too
This is a really good guide
https://lethal.wiki/dev/initial-setup
Got it, will follow that when I get home
You can start your work base on mine.
https://github.com/BoredBean/CustomDeathAudio
That would be easier
this helps a lot, thanks so much, how did you get it to register a player death? (Sorry, im really fucking new to understanding c#)
They're adding to code to the game's method that runs when a player dies (PlayerControllerB.KillPlayer). This is done using Harmony, which basically all mods use so it's a valuable tool to learn
Its at the bottom of the Plugin.cs file
Also you should destroy the audio game object after its done to not waste memory
I'm new to C# too, I thought Unity or the runtime has a mechanic to auto recycle the memory, when there is no reference to the object.
But I agree that do it manully is always good.