EVENT CONTINUELEVELMUSICSLOT: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Added additional information.
Removed wrong information, m_volume_number and m_level_number do not reflect the currently playing music track.
Line 1: Line 1:
'''EVENT_CONTINUELEVELMUSICSLOT''' is a [[EDuke32 event list|Misc Event]].
'''EVENT_CONTINUELEVELMUSICSLOT''' is a [[EDuke32 event list|Misc Event]].


Called when the current track is continued after loading a save or restarting the map after death.
Called when the current music track is continued after loading a save or when restarting the map after death, regardless of whether the music is on or off.
This event is executed regardless of whether the music is turned on or off.
If the track is restarted, [[EVENT_PLAYLEVELMUSICSLOT]] is called instead.
 
The requested track is passed into EVENT_CONTINUELEVELMUSICSLOT via ud.m_volume_number and ud.m_level_number.


The currently playing track can be determined from the [[Members_of_the_userdef_structure|userdef struct members]] [[music_episode]] and [[music_level]] for volume and level slot respectively.
[[Category:Events]]
[[Category:Events]]

Revision as of 05:09, 23 February 2020

EVENT_CONTINUELEVELMUSICSLOT is a Misc Event.

Called when the current music track is continued after loading a save or when restarting the map after death, regardless of whether the music is on or off. If the track is restarted, EVENT_PLAYLEVELMUSICSLOT is called instead.

The currently playing track can be determined from the userdef struct members music_episode and music_level for volume and level slot respectively.