Jukebox Module – Arma 2
Category: ArmA 2: Editor Modules
michaelger (talk | contribs) mNo edit summary  | 
				m (Same style for all modules)  | 
				||
| Line 4: | Line 4: | ||
The '''Jukebox''' plays random [[ArmA_2:_Music|ArmA 2 music]].  | The '''Jukebox''' plays random [[ArmA_2:_Music|ArmA 2 music]].  | ||
== Initialization==  | |||
=== Startup ===  | |||
''F7 > Jukebox''  | |||
==   | === Optional parameters ===  | ||
====Set variables to jukebox logic with desired values====  | |||
*'''trackList = <array>;''' - List of played music tracks  | |||
::Example: ''this setvariable ["trackList",["EP1_Track","EP1_Track01D"]];''  | |||
::Default value: All songs in config  | |||
*'''delay = <number>;''' - Delay between songs  | |||
::Example: ''this setvariable ["delay",0];''  | |||
::Default value: 3  | |||
==   | === Alternative startup (without module) ===  | ||
 [<trackList>,<delay>] spawn bis_fnc_music;  | |||
Both params are optional  | |||
Revision as of 08:59, 12 July 2010
Introduction
The Jukebox plays random ArmA 2 music.
Initialization
Startup
F7 > Jukebox
Optional parameters
Set variables to jukebox logic with desired values
- trackList = <array>; - List of played music tracks
 
- Example: this setvariable ["trackList",["EP1_Track","EP1_Track01D"]];
 - Default value: All songs in config
 
- delay = <number>; - Delay between songs
 
- Example: this setvariable ["delay",0];
 - Default value: 3
 
Alternative startup (without module)
[<trackList>,<delay>] spawn bis_fnc_music;
Both params are optional