BIS fnc playMusic: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code> *(.*)\{\{codecomment *\| *([^ ]*) *\}\}(.*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 8: | Line 8: | ||
|descr= Plays given song. | |descr= Plays given song. | ||
|s1=[class,start,volume] call [[BIS_fnc_playMusic]] | |s1= [class,start,volume] call [[BIS_fnc_playMusic]] | ||
|p1= class: [[String]] - Classname of song | |p1= class: [[String]] - Classname of song | ||
|p2= start: [[Number]] - Time of start in seconds - Default: 0 | |p2= start: [[Number]] - Time of start in seconds - Default: 0 | ||
|p3= volume: [[Number]] - Music volume from 0 to 1 - Default: [[musicVolume]] | |p3= volume: [[Number]] - Music volume from 0 to 1 - Default: [[musicVolume]] | ||
|r1= [[Boolean]] - true | |r1= [[Boolean]] - true | ||
|x1= < | |x1= <sqf>["LeadTrack04_F", 10, 0.5] call BIS_fnc_playMusic; // song starts at 10 seconds with 50% volume.</sqf> | ||
|seealso= [[playMusic]] [[musicVolume]] | |seealso= [[playMusic]] [[musicVolume]] | ||
}} | }} |
Revision as of 23:06, 12 July 2022
Description
Syntax
- Syntax:
- [class,start,volume] call BIS_fnc_playMusic
- Parameters:
- class: String - Classname of song
- start: Number - Time of start in seconds - Default: 0
- volume: Number - Music volume from 0 to 1 - Default: musicVolume
- Return Value:
- Boolean - true
Examples
- Example 1:
Additional Information
- See also:
- playMusic musicVolume
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