BIS fnc music: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code> *([^<|{]*) *<\/code>" to "<sqf>$1</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - " |s1=[" to " |s1= [") |
||
Line 14: | Line 14: | ||
|descr= 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]]. | |descr= 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]]. | ||
|s1=[tracklist, delay] call [[BIS_fnc_music]] | |s1= [tracklist, delay] call [[BIS_fnc_music]] | ||
|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 |
Revision as of 23:11, 12 July 2022
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:
- Sound
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:
Additional Information
- See also:
- playMusic BIS_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