====== Music (XG class) ====== Class = music Changes the currently playing music. ===== Parameters ===== ^ Prm^ Name^ Type^ Meaning | | Ip0| Song ID| Music| Name ([[music_id|ID]]) of the music to start playing. | | Ip1| Play Looped| Integer| If non-zero, the music will play looped. | ===== Example ===== Line Type { ID = 5006 Comment = "Play music track ID 2 looped" Flags = player_cross Flags2 = when_act | any Class = music Count = 1 Time = 1 Song ID = 2 Play Looped = 1 } The line is triggered when the player crosses the line (Flags = player_cross). The line is active in any skill mode and any game type (Flags2 = any) and the line carries out it's action when active (Flags2 = when_act). The line can only be triggered once (Count = 1). When activated, the line changes the music track to track ID 2 and it will be played looped.