fadeMusic: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|FADEMUSIC]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|FADEMUSIC]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|FADEMUSIC]]
[[Category:Scripting Commands ArmA|FADEMUSIC]]


| ofp |= Game name


<h2 style="color:#000066"> '''''time'' fadeMusic ''volume'''''</h2>
|1.00|= Game version


|eff= local |= Effects in MP
____________________________________________________________________________________________


'''Operand types:'''
| Changes the music volume smoothly within the given time. |= Description
____________________________________________________________________________________________


'''time:''' [[Number]]
| time '''fadeMusic''' volume |= Syntax


'''volume:''' [[Number]]
|p1= time: [[Number]] - the time in seconds |= Parameter 1


'''Type of returned value:'''
|p2= volume: [[Number]] - music volume range 0 to 1. 0 is silent, 1 is the loudest. 0.5 is set by default. |= Parameter 2


[[Nothing]]
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>5 fadeMusic 0</pre> |= Example 1
____________________________________________________________________________________________


'''Description:'''
| [[fadeSound]] |= See also


Smooth change in music volume.
}}


Change duration is given by '''time''' (in seconds),  target volume by '''volume'''.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Volume range is 0 (no music) to 1 (full volume).
<!-- Note Section END -->
</dl>


Default music volume is 0.5.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|FADEMUSIC]]
 
[[Category:Scripting Commands OFP 1.96|FADEMUSIC]]
'''Example:'''
[[Category:Scripting Commands OFP 1.46|FADEMUSIC]]
 
[[Category:Scripting Commands ArmA|FADEMUSIC]]
5 '''fadeMusic''' 0

Revision as of 01:07, 2 August 2006

Hover & click on the images for description

Description

Description:
Changes the music volume smoothly within the given time.
Groups:
Uncategorised

Syntax

Syntax:
time fadeMusic volume
Parameters:
time: Number - the time in seconds
volume: Number - music volume range 0 to 1. 0 is silent, 1 is the loudest. 0.5 is set by default.
Return Value:
Nothing

Examples

Example 1:
5 fadeMusic 0

Additional Information

See also:
fadeSound

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

Bottom Section