BIS fnc playMusic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(33 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Sound


|1.00|= Game version
|descr= Plays given song.
____________________________________________________________________________________________


| ''N/A'' |= Description
|s1= [class,start,volume] call [[BIS_fnc_playMusic]]
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_playMusic]]; --> |= Syntax
|p1= class: [[String]] - classname of song


|p1= |= Parameter 1
|p2= start: [[Number]] - time of start in seconds - Default: 0


| |= Return value
|p3= volume: [[Number]] - music volume from 0 to 1 - Default: [[musicVolume]]
____________________________________________________________________________________________


|x1= <code></code> |=
|r1= [[Boolean]] - true
____________________________________________________________________________________________


| |= See also
|x1= <sqf>["LeadTrack04_F", 10, 0.5] call BIS_fnc_playMusic; // song starts at 10 seconds with 50% volume.</sqf>


|seealso= [[playMusic]] [[musicVolume]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: MP|{{uc:playMusic}}]]
[[Category:Functions|{{uc:playMusic}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:playMusic}}]]

Latest revision as of 16:50, 8 November 2023

Hover & click on the images for description

Description

Description:
Plays given song.
Execution:
call
Groups:
Sound

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:
["LeadTrack04_F", 10, 0.5] call BIS_fnc_playMusic; // song starts at 10 seconds with 50% volume.

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