Starttrack: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
'''''starttrack''''' is used to change the current background music that is playing. | '''''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. Change [[volume_number]] take another episode music. | <track#> is literally the track number of the current episode (which can be detected with the [[gamevar]] [[VOLUME]]) as defined by the [[music]] command. | ||
Change [[volume_number]] take another episode music. Remember that you must take back the last [[volume_number]] value: | |||
getuserdef[THISACTOR].volume_number TEMP | |||
setuserdef[THISACTOR].volume_number 1 | |||
starttrack | |||
setuserdef[THISACTOR].volume_number TEMP | |||
This will start track from episode 2 level 1 at any episode. | |||
[[Category:EDuke commands]] | [[Category:EDuke commands]] | ||
[[Category:Sound manipulation]] | [[Category:Sound manipulation]] | ||
[[Category:Player manipulation]] | [[Category:Player manipulation]] |
Revision as of 14:26, 26 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. Change volume_number take another episode music. Remember that you must take back the last volume_number value:
getuserdef[THISACTOR].volume_number TEMP setuserdef[THISACTOR].volume_number 1 starttrack setuserdef[THISACTOR].volume_number TEMP
This will start track from episode 2 level 1 at any episode.