User Tools

Site Tools


Scripting - Sound data and function

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


Sound Logging
Syntax Sound.Log(bool)
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)
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

sound_func.txt · Last modified: 2022/03/22 16:39 (external edit)