Jump to content

How to check if sound is playing or not in script?


Recommended Posts

  • 3 years later...

Pl

 

 

Something like..

int iSound = mySound.Play(self)

if iSound == 0
  ...stuff
endif

Place a small wait command after the play otherwise your sound could still delay playing, even though a return was made on its instanceID, A wait of 0.1 seconds will do it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...