None of the current music event handlers fire on playMusic "" It would be nice to have one. Be that by either adding support for it in one of the existing ones or as a "MusicForcedStop" EH.
Description
Details
- Severity
- Feature
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Scripting
Event Timeline
This isn't a feature request this is a bug. MusicStop should trigger when music is stopped.
Thanks for fixing this.
I wasn't sure if this was a bug or not as on the MusicStop event handler wiki it states:
Note that it will not be triggered if the music is stopped forcefully using playMusic "".
Making it seem like intended behavior.
soooo.... playMusic "" is supposed to trigger a "MusicStop" Eventhandler if i understand the wiki right.
but it doesnt?
After further testing, i noticed that it will only trigger when when playMusic "" actually interrupts a currently played music track.
Idk if that is intended behavior or not, but maybe it would be worth while to clarify that detail in the biki, esp. on the https://community.bistudio.com/wiki/addMusicEventHandler entry.
The question is, if music is not playing, can it be stopped? I will pass this ticket to our wiki guru to see if this can be clarified, thanks for reporting.
wiki amended at Event Handlers - MusicStop
indeed, playMusic "" cannot stop music if no music is playing (-: