SetMusic: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "''void'' '''SetMusic'''(''str name'') Changes the music to the one with the given ''name''. The name can be with or without the lump name prefix (D_ for DOOM, MUS_ for Hereti...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
''void'' '''SetMusic'''(''str name'')
{{ACSFunction|description=Changes the music to the one with the given ''name''.
 
|usage=''void'' '''SetMusic'''(''str name'')
Changes the music to the one with the given ''name''. The name can be with or without the lump name prefix (D_ for DOOM, MUS_ for Heretic).
|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).
|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.
Currently only the ''name'' parameter is supported in Eternity's '''SetMusic''' implementation.
 
|id=ACC internal
==See also==
|seealso=
*[[ACS built-in functions]]
*[[LocalSetMusic]]}}
 
[[Category:ACS]]
[[Category:Editing]]

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.

See also[edit]