Jukebox Module – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search
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''


== Quickstart ==
=== Optional parameters ===
====Set variables to jukebox logic with desired values====


# Place the module in the editor.
*'''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


== Configuration ==
=== Alternative startup (without module) ===
You can define the tracks that will be played and the delay in seconds between the tracks.


You can configure it with the init line or a script.
[<trackList>,<delay>] spawn bis_fnc_music;
 
Both params are optional
'''Example (script):'''
 
  jukebox1 [[setVariable]] ["trackList",[EP1_Track01,EP1_Track07],true];
  jukebox1 setvariable ["delay",30,true];
 
 
Note:
In this example the name of the jukebox module is ''jukebox1''.

Revision as of 09: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