skip to content
Doomsday Manual
User Tools
Admin
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
Trace:
xg:class:music
====== Music (XG class) ====== <code>Class = music </code> 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.
xg/class/music.txt
· Last modified: 2017-03-17 10:24 by
skyjake
Page Tools
Show page
Old revisions
Backlinks
Rename Page
Back to top
Doomsday
Engine
2.3
⇣
Builds
Add-ons
Manual
·
Forums
Support
Bug
Tracker
Blog