How do I get the game to play a sound?

Discussion about Mods for Prison Architect

Moderator: NBJeff

TheEisbaer
level1
level1
Posts: 53
Joined: Wed Dec 19, 2012 6:26 pm
Location: Germany
Contact:

How do I get the game to play a sound?

Postby TheEisbaer » Sat Sep 27, 2014 3:49 pm

I can't really do something in lua, yet I try to get the panic button (test mod for a25) to play a sound when pressed, but how do I do it?
I tried it with

Code: Select all

Game.Sound("WeaponsFreeStart", "weaponsfree2d")

but how do I test if it worked?

Thanks in advance

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 4 guests