BIS fnc music: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling - TODO: determine game & version) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Randomly play provided tracks defined in [[Description.ext#CfgMusic|CfgMusic]] and does a 3 seconds [[fadeMusic|fade out]]. This function takes [[accTime]] into account. See also [[BIS_fnc_jukebox]]. |= | | Randomly play provided tracks defined in [[Description.ext#CfgMusic|CfgMusic]] and does a 3 seconds [[fadeMusic|fade out]]. This function takes [[accTime]] into account. See also [[BIS_fnc_jukebox]]. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [tracklist, delay] call [[BIS_fnc_music]] |= | | [tracklist, delay] call [[BIS_fnc_music]] |SYNTAX= | ||
|p1= tracklist: [[Array]] of [[String|Strings]] - (Optional, default all game musics) a list of [[Description.ext#CfgMusic|CfgMusic]] classes |= | |p1= tracklist: [[Array]] of [[String|Strings]] - (Optional, default all game musics) a list of [[Description.ext#CfgMusic|CfgMusic]] classes |PARAMETER1= | ||
|p2= delay: [[Number]] - (Optional, default 3) delay in seconds between tracks |= | |p2= delay: [[Number]] - (Optional, default 3) delay in seconds between tracks |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code><nowiki>[</nowiki>["myMusic1", "myMusic2"], 1] [[call]] [[BIS_fnc_music]];</code> |= | |x1= <code><nowiki>[</nowiki>["myMusic1", "myMusic2"], 1] [[call]] [[BIS_fnc_music]];</code> |EXAMPLE1= | ||
|x2= <code>[] [[call]] [[BIS_fnc_music]]; {{codecomment|// will play all game tracks}}</code> |= | |x2= <code>[] [[call]] [[BIS_fnc_music]]; {{codecomment|// will play all game tracks}}</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[playMusic]], [[BIS_fnc_jukebox]] |= | | [[playMusic]], [[BIS_fnc_jukebox]] |SEEALSO= | ||
}} | }} |
Revision as of 14:32, 7 April 2019
Description
- Description:
- Randomly play provided tracks defined in CfgMusic and does a 3 seconds fade out. This function takes accTime into account. See also BIS_fnc_jukebox.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [tracklist, delay] call BIS_fnc_music
- Parameters:
- tracklist: Array of Strings - (Optional, default all game musics) a list of CfgMusic classes
- delay: Number - (Optional, default 3) delay in seconds between tracks
- Return Value:
- Nothing
Examples
- Example 1:
[["myMusic1", "myMusic2"], 1] call BIS_fnc_music;
- Example 2:
[] call BIS_fnc_music; // will play all game tracks
Additional Information
- See also:
- playMusicBIS_fnc_jukebox
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note