Starttrack: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Hendricks266 (talk | contribs) Proper Wording |
||
Line 4: | Line 4: | ||
<track#> is literally the track number of the current episode (which can be detected with the [[gamevar]] [[VOLUME]]) as defined by the [[music]] command. | <track#> is literally the track number of the current episode (which can be detected with the [[gamevar]] [[VOLUME]]) as defined by the [[music]] command. | ||
To be able to use another episode's music, change [[volume_number]] as in the example below. Remember that you must change it back to its last value: | |||
getuserdef[THISACTOR].volume_number TEMP | getuserdef[THISACTOR].volume_number TEMP | ||
setuserdef[THISACTOR].volume_number 1 | setuserdef[THISACTOR].volume_number 1 | ||
starttrack 0 | starttrack 0 | ||
setuserdef[THISACTOR].volume_number TEMP | setuserdef[THISACTOR].volume_number TEMP | ||
This will start track from episode 2 level 1 | This will start the music track from episode 2, level 1. | ||
[[Category:EDuke commands]] | [[Category:EDuke commands]] | ||
[[Category:Sound manipulation]] | [[Category:Sound manipulation]] | ||
[[Category:Player manipulation]] | [[Category:Player manipulation]] |
Revision as of 14:47, 27 August 2007
starttrack <track#>
starttrack is used to change the current background music that is playing.
<track#> is literally the track number of the current episode (which can be detected with the gamevar VOLUME) as defined by the music command.
To be able to use another episode's music, change volume_number as in the example below. Remember that you must change it back to its last value:
getuserdef[THISACTOR].volume_number TEMP setuserdef[THISACTOR].volume_number 1 starttrack 0 setuserdef[THISACTOR].volume_number TEMP
This will start the music track from episode 2, level 1.