SetMusic: Difference between revisions
From Eternity Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
|parameters= | |parameters= | ||
*'''name''': name of the music to play. The name can be with or without the lump name prefix (<code>D_</code> for DOOM, <code>MUS_</code> for Heretic). | *'''name''': name of the music to play. The name can be with or without the lump name prefix (<code>D_</code> for DOOM, <code>MUS_</code> for Heretic). | ||
|notes=Currently only the ''name'' parameter is supported in Eternity's '''SetMusic''' implementation. | |notes=This function affects all players in the game. If you want to change music only for one player, use [[LocalSetMusic]]. | ||
Currently only the ''name'' parameter is supported in Eternity's '''SetMusic''' implementation. | |||
|id=ACC internal | |id=ACC internal | ||
|seealso= | |seealso= | ||
* | *[[LocalSetMusic]]}} | ||
Latest revision as of 14:29, 5 May 2026
Description[edit]
This is an ACS built-in function.
Changes the music to the one with the given name.
Usage[edit]
void SetMusic(str name)
Parameters[edit]
- name: name of the music to play. The name can be with or without the lump name prefix (
D_for DOOM,MUS_for Heretic).
Return value[edit]
Examples[edit]
No examples given.
Notes[edit]
This function affects all players in the game. If you want to change music only for one player, use LocalSetMusic.
Currently only the name parameter is supported in Eternity's SetMusic implementation.
This function's identification in zspecial.acs is: ACC internal.