Log in

View Full Version : Playing Sounds by scripting in Phyton


DrJones
07-23-11, 02:46 PM
Hey @ All

I think I found a way to play Sounds by scripting in Phyton in the SH5 Scripts:

This is a small example how to use it in the script

from System.Media import SoundPlayer
sp = SoundPlayer()
sp.SoundLocation = "C:\Ubisoft\Silent Hunter 5\data\Sound\Torpedo tube opening.wav"
sp.Play()

Best Regards

DrJones:salute:

Stormfly
07-23-11, 02:53 PM
nice found ! :up:

Stormfly
07-23-11, 03:50 PM
seams we need a path variable for it...