TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Music

int Terraria.ModLoader.ModNPC.Music = -1
getset

The ID of the music that plays when this NPC is on or near the screen. Defaults to -1, which means music plays normally.

Note: This property gets ignored if the game would not play music for this NPC by default (i.e. it's not a boss, or it doesn't belong to an invasion)

Will be superseded by ModSceneEffect. Kept for legacy.

Definition at line 62 of file ModNPC.cs.

62{ get; set; } = -1;

Referenced by Terraria.Main.UpdateAudio_DecideOnNewMusic(), and Terraria.Main.UpdateAudio_DecideOnTOWMusic().