playMusic: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
Killzone Kid (talk | contribs) m (see also) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Plays music defined in [[Description.ext#Music|CfgMusic]]. To stop the music execute [[playMusic]] "" or give the start time which is beyond the music duration [[playMusic]] ["SomeMusic", 1000]; <br><br> | | Plays music defined in description.ext [[Description.ext#Music|CfgMusic]] or config.cpp. To stop the music execute [[playMusic]] "" or give the start time which is beyond the music duration [[playMusic]] ["SomeMusic", 1000]; <br><br> | ||
For Arma 3 music, see [[Arma 3 CfgMusic]] |= Description | For Arma 3 music, see [[Arma 3 CfgMusic]] or raw config [[CfgMusic]] |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 00:37, 20 June 2016
Description
- Description:
- Plays music defined in description.ext CfgMusic or config.cpp. To stop the music execute playMusic "" or give the start time which is beyond the music duration playMusic ["SomeMusic", 1000];
For Arma 3 music, see Arma 3 CfgMusic or raw config CfgMusic - Groups:
- Uncategorised
Syntax
Alternative Syntax
- Syntax:
- playMusic [name, start]
- Parameters:
- [name, start]: Array
- name: String - music class
- start: Number - start from (seconds). Could be negative.
- Return Value:
- Nothing
Examples
- Example 1:
playMusic "RadioAmbient1";
- Example 2:
playMusic ["RadioAmbient3", 3]; //start from 00:00:03
- Example 3:
- Play from 00:00:01 to 00:00:05
0 = [] spawn { playMusic ["RadioAmbient5", 1]; sleep 4; playMusic ""; };
Additional Information
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
- Crowe
- You can get all Music Types from Arma:_cfgMusic http://community.bistudio.com/wiki/Arma_2:_Music#top
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Command Group: Sounds