playMusic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
m (upd. link)
Line 26: Line 26:
|x2 = <code>playMusic ["Track13", 30]</code> |= Example 2
|x2 = <code>playMusic ["Track13", 30]</code> |= Example 2


| [[playSound]], [[say]], [[say string]], [[createSoundSource]] |= See also
| [[playSound]], [[say]], [[createSoundSource]] |= See also


}}
}}

Revision as of 01:43, 7 July 2010

Hover & click on the images for description

Description

Description:
Plays music defined in CfgMusic.
Groups:
Uncategorised

Syntax

Syntax:
playMusic name
Parameters:
name : String
Return Value:
Nothing

Alternative Syntax

Syntax:
playMusic [name,position]
Parameters:
[name,position]: Array
name: String
position: Number in seconds
Return Value:
Nothing

Examples

Example 1:
playMusic "musicname"
Example 2:
playMusic ["Track13", 30]

Additional Information

See also:
playSoundsaycreateSoundSource

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