View Single Post
10/14/17, 04:38 PM   #1
Hell4Ge
Join Date: Oct 2017
Posts: 3
Detect when SoundPlay complete it's task

This code represents the problem that I am facing now:

SetSetting(SETTING_TYPE_AUDIO, AUDIO_SETTING_BACKGROUND_AUDIO, 1)
PlaySound(SOUNDS.EMPEROR_CORONATED_DAGGERFALL)
SetSetting(SETTING_TYPE_AUDIO, AUDIO_SETTING_BACKGROUND_AUDIO, 0)

The sound will be played, but I won't be able to hear it as the 3rd line executes instantly

Any solution for this?

Edit: I am looking now at
http://esoapi.uesp.net/current/src/l...layer.lua.html

Last edited by Hell4Ge : 10/14/17 at 04:42 PM.
  Reply With Quote