View Single Post
Old 07-23-11, 02:46 PM   #1
DrJones
Samurai Navy
 
Join Date: Jun 2009
Location: Germany, 50 Kilometers away from Kiel
Posts: 576
Downloads: 343
Uploads: 0
Default Playing Sounds by scripting in Phyton

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
DrJones is offline   Reply With Quote