SetMusic

From Eternity Wiki
Revision as of 14:29, 5 May 2026 by Printz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

This is an ACS built-in function.

Changes the music to the one with the given name.

Usage

void SetMusic(str name)

Parameters

  • 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

Examples

No examples given.

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.

This function's identification in zspecial.acs is: ACC internal.

See also