Quote: "Can you run multiple background music
eg. a different music bg for each level? And how the heck is it done?"
Place a dynamic entity and use the
music action like so...
:state=0:music=audiobank\user\happybirthday.ogg,state=1
Note: I used the
user sub-folder, just make sure the music file is in the audiobank.
I need to update my old Radio script to incorporate the scancodes anyway, so I will post it here.
Edit
Here's one (for v1.03) that uses the keys I, O, & P to select 3 different songs.
;Artificial Intelligence Script
;CE Radio v1.03a
desc = Radio
;Triggers
:state=0:state=1
:state=1,scancodekeypressed=23:state=2
:state=1,scancodekeypressed=24:state=3
:state=1,scancodekeypressed=25:state=4
:state=2:music=audiobank\user\happybirthday.ogg,state=1
:state=3:music=audiobank\user\voodoo.ogg,state=1
:state=4:music=audiobank\user\thumpa.ogg,state=1
;End of Script
Save the script as a text file with an
fpi extension, and place it in the
scriptbank.
Just place an invulnerable entity in your map, like a blood-splat overlay.
Then right click it and set the STATIC MODE to NO, and the ALWAYS ACTIVE to YES.
Next, set its AI MAIN to the script above.
Now you have 3 songs to choose from on the level (you can easily add more).
If the song begins with a tone instead of silence then you'll get reverb if you hold the keys down.