| 10-12-2005, 04:33 PM | #1 |
Good evening everyone. A question regarding music in the triggersection. I have imported custom music and I want to play them all without having a trigger waiting in seconds that I have set, as the length of the music, if you understand. I found this: Sound - Set music list to "Music" (already preset by blizzard with their music) starting with song 0. Is it possible to make your own music list and then order the trigger to start with song 1, for instance? |
| 10-12-2005, 08:24 PM | #2 |
Yes, but there is little documentation about the subject, and GUI is unable to do it. You have to use this native: common.j:// Music Interface. Note that if music is disabled, these calls do nothing native SetMapMusic takes string musicName, boolean random, integer index returns nothing native ClearMapMusic takes nothing returns nothing Well the thing is that string musicName contains the path of the music file or "music" for default or plenty of paths separated by ; ("path1;path2;path3") You can use a custom script line to call it, For example : Custom Script:call SetMapMusic("music\\file1.mp3;music\\file2.mp3",false,0) |
