BIS fnc playMusic: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2") |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Sound | ||
| | |descr= Plays given song. | ||
|s1= [class,start,volume] call [[BIS_fnc_playMusic]] | |||
| | |p1= class: [[String]] - classname of song | ||
| | |p2= start: [[Number]] - time of start in seconds - Default: 0 | ||
|p3= volume: [[Number]] - music volume from 0 to 1 - Default: [[musicVolume]] | |||
|p3= volume: [[Number]] - | |||
| [[Boolean]] - true | |r1= [[Boolean]] - true | ||
|x1= < | |x1= <sqf>["LeadTrack04_F", 10, 0.5] call BIS_fnc_playMusic; // song starts at 10 seconds with 50% volume.</sqf> | ||
|seealso= [[playMusic]] [[musicVolume]] | |seealso= [[playMusic]] [[musicVolume]] | ||
}} | }} |
Latest revision as of 15:50, 8 November 2023
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:
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