BIS fnc playMusic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
Line 10: Line 10:
|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

Revision as of 14:59, 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