Author Topic: How to add a sound in-game?  (Read 347 times)

I wanna know please :/

Thanks.

Wow that helpfull...

...

Take your sound file, convert it to a wav audio file. Open up notepad and put this in:
Code: [Select]
datablock AudioProfile(MrLoL_Sound)
{
filename = "./MrLoL.wav";
description = AudioClosest3d;
preload = false;
Save the name as Server.cs. Package the sound file and server.cs you want into a folder, name that folder Sound_MrLoL (Or whatever you want it to be). Make a txt file (with notepad) and put this in:
Code: [Select]
Title: MrLoL sound
Author: MrLoL
Save it as description.txt.
Then you have to make a namecheck.cs. With Notepad, put in the name of your file,
Code: [Select]
Sound_MrLoLSave that file as Namecheck.cs
Now put all of those into a folder, name that folder Sound_MrLoL.
Hopefully i didn't do something wrong.


Wow that helpfull...

...
forgeting that this is a forum? and that we're not always online?

also, you could just look at other sound addons to see how they did it