BIS fnc playMusic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fixed Syntax)
m (template:command argument fix)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| [class,start,volume] call [[BIS_fnc_playMusic]] |= Syntax
| [class,start,volume] call [[BIS_fnc_playMusic]] |SYNTAX=


|p1= class: [[String]] - Classname of song |= Parameter 1
|p1= class: [[String]] - Classname of song |PARAMETER1=
|p2= start: [[Number]] - Time of start in seconds - Default: 0 |= Parameter 2
|p2= start: [[Number]] - Time of start in seconds - Default: 0 |PARAMETER2=
|p3= volume: [[Number]] - Music volume from 0 to 1 - Default: [[musicVolume]] |= Parameter 3
|p3= volume: [[Number]] - Music volume from 0 to 1 - Default: [[musicVolume]] |PARAMETER3=


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


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


| [[playMusic]] [[musicVolume]] |= See also
| [[playMusic]] [[musicVolume]] |SEEALSO=


}}
}}

Revision as of 15:32, 7 April 2019


Hover & click on the images for description

Description

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

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