BIS fnc playMusic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(filled page)
Line 5: Line 5:
| arma3 |= Game name
| arma3 |= Game name


|1.00|= Game version
| 1.0 |= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A'' |= Description
| Plays given song. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_playMusic]]; --> |= Syntax
| class call [[BIS_fnc_playMusic]] |= Syntax


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


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


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



Revision as of 02:19, 5 April 2018


Hover & click on the images for description

Description

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

Syntax

Syntax:
class 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. // will return ["Geronimo", "Jane", "John", "Julia"]

Additional Information

See also:
See also needed

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