BIS fnc playMusic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|gr1 = Sounds |GROUP1=" to "|gr1= Sound |GROUP1=")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 7: Line 6:


|gr1= Sound |GROUP1=
|gr1= Sound |GROUP1=
____________________________________________________________________________________________


| Plays given song. |DESCRIPTION=
| Plays given song. |DESCRIPTION=
____________________________________________________________________________________________


| [class,start,volume] call [[BIS_fnc_playMusic]] |SYNTAX=
| [class,start,volume] call [[BIS_fnc_playMusic]] |SYNTAX=
Line 19: Line 16:


| [[Boolean]] - true |RETURNVALUE=
| [[Boolean]] - true |RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>["LeadTrack04_F",10,0.5] call [[BIS_fnc_playMusic]]; {{codecomment|//Song starts at 10 seconds with 50% volume.}}</code> |EXAMPLE1=
|x1= <code>["LeadTrack04_F",10,0.5] call [[BIS_fnc_playMusic]]; {{codecomment|//Song starts at 10 seconds with 50% volume.}}</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[playMusic]] [[musicVolume]] |SEEALSO=
| [[playMusic]] [[musicVolume]] |SEEALSO=

Revision as of 23:54, 16 January 2021

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

Notes

Bottom Section