Essentials Series/Sound and Music: Difference between revisions
→PlayMusic Event
m (→PlayMusic Event: typo lol) |
|||
Line 49:
== PlayMusic Event ==
If you want a music track to play, you can send the PlayMusic [[../Links/|event]] to any [[../Dispatchers/|dispatcher]] with the number of the song on the first argument (the game always uses a dispatcher called MUSIC_DISP, and so can you if you wish, but it's not necessary). Note that this cannot be done on ScenePrepare, as you have to wait at least one frame before PlayMusic actually works. An alternative way is to make a [[../Timers/|timer]] that runs on ScenePrepare and expires in 0.1 seconds before sending PlayMusic to a dispatcher on Expired.
Here is a table of which argument will play which song, as well as whether it exists in the game. If a song does not exist, it will silence the music instead unless you add it.
{| class="wikitable"
|-
! Argument !! SNDS asset (MNU5.hip) !! Exists?
|-
| 0 || music_00_hb_44 || <span style="color:#007F00">Yes</span>
|-
| 1 || music_01_jf_44 || <span style="color:#007F00">Yes</span>
|-
| 2 || music_02_bb_44 || <span style="color:#007F00">Yes</span>
|-
| 3 || music_03_gl_44 || <span style="color:#007F00">Yes</span>
|-
| 4 || music_04_b1_44 || <span style="color:#007F00">Yes</span>
|-
| 5 || music_05_rb_44 || <span style="color:#007F00">Yes</span>
|-
| 6 || music_06_bc_44 || <span style="color:#007F00">Yes</span>
|-
| 7 || music_07_sm_44 || <span style="color:#FF0000">No</span>
|-
| 8 || music_08_b2_44 || <span style="color:#007F00">Yes</span>
|-
| 9 || music_09_kf_44 || <span style="color:#007F00">Yes</span>
|-
| 10 || music_10_gy_44 || <span style="color:#007F00">Yes</span>
|-
| 11 || music_11_db_44 || <span style="color:#007F00">Yes</span>
|-
| 12 || music_12_b3_44 || <span style="color:#007F00">Yes</span>
|-
| 13 || music_13_mnu3_44 || <span style="color:#007F00">Yes</span>
|-
| 14 || music_14_mnu4_44 || <span style="color:#FF0000">No</span>
|-
| 15 || music_15_slide_44 || <span style="color:#007F00">Yes</span>
|-
| 16 || music_16_ambush_44 || <span style="color:#007F00">Yes</span>
|-
| 17 || music_17_subboss_44 || <span style="color:#FF0000">No</span>
|-
| 18 || music_18_skatepark_44 || <span style="color:#FF0000">No</span>
|-
| 21 || music_21_Calliope1 || <span style="color:#007F00">Yes</span>
|-
| 22 || music_22_Calliope2 || <span style="color:#007F00">Yes</span>
|-
| 23 || music_23_Calliope3 || <span style="color:#007F00">Yes</span>
|}
== Sound Effects (Scooby and BFBB) ==
|