Adding custom sounds

Discussion about Mods for Prison Architect

Moderator: NBJeff

Posts: 8
Joined: Fri Jun 06, 2014 1:18 am

Adding custom sounds

Postby DibbyDoo » Thu Feb 19, 2015 5:37 am

Is it possible to add custom sounds to a mod? Like if a prisoner is in a specific room the sound plays.
User avatar
Posts: 255
Joined: Wed Sep 26, 2012 8:00 pm

Re: Adding custom sounds

Postby Chad » Thu Feb 19, 2015 7:46 am

You can play sounds with Object.Sound() (see la_function_list.txt). Sounds are declared in sounds.txt (surprise!), but I don't know if you can add a new file with new sounds to your mod, or if you have to modify the original sounds.txt for that. The wiki may help with that question.

Good luck!

(If you've found the solution, feel free to share with everyone)
Posts: 3111
Joined: Thu Mar 14, 2002 12:23 pm
Location: London, UK

Re: Adding custom sounds

Postby elDiablo » Thu Feb 19, 2015 7:52 am

sounds.txt is loaded additively (like all the other modable files), so you should be able to add new sounds to it and have it available along the main game sound files no problem!

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 1 guest