Scripting - Sound data and function

Here can find some information about Enhanced Scripting function and data misc!

Debug

Sound Logging
Syntax Sound.Log(bool)
Description:
Log a message to sysmessage every time a sound is played.
Returns void
In Object: Sound
Parameters: bool True/False True - Enable logging False - Disable logging

Wait For Sound
Syntax Sound.WaitForSound(List[Int32] soundIds, timeout=-1)
Description:
Wait for a sound to be played that the id is in the list of soundIds provided
Returns True - Sound played, False timeout occurred
In Object: Sound
Parameters: List[Int32] soundIds, int timeout