BIS fnc playMusic: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
| 1.00 | | 1.00 | ||
|gr1= Sound | |gr1= Sound | ||
| Plays given song. | | Plays given song. | ||
| [class,start,volume] call [[BIS_fnc_playMusic]] | | [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 | ||
|p3= volume: [[Number]] - Music volume from 0 to 1 - Default: [[musicVolume]] | |p3= volume: [[Number]] - Music volume from 0 to 1 - Default: [[musicVolume]] | ||
| [[Boolean]] - true | | [[Boolean]] - true | ||
|x1= <code>["LeadTrack04_F",10,0.5] call [[BIS_fnc_playMusic]]; {{codecomment|//Song starts at 10 seconds with 50% volume.}}</code> | |x1= <code>["LeadTrack04_F",10,0.5] call [[BIS_fnc_playMusic]]; {{codecomment|//Song starts at 10 seconds with 50% volume.}}</code> | ||
| [[playMusic]] [[musicVolume]] | | [[playMusic]] [[musicVolume]] | ||
}} | }} |
Revision as of 23:39, 17 January 2021
Description
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