fadeSound: 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|FADESOUND]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|FADESOUND]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|FADESOUND]]
[[Category:Scripting Commands ArmA|FADESOUND]]


| ofp |= Game name


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


|eff= local |= Effects in MP
____________________________________________________________________________________________


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


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


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


'''Type of returned value:'''
|p2= volume: [[Number]] - sound 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 fadeSound 0</pre> |= Example 1
____________________________________________________________________________________________


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


Smooth change in all sounds volume.
}}


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


Default sounds volume is 1.0.
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Example:'''
[[Category:Scripting Commands|FADESOUND]]
 
[[Category:Scripting Commands OFP 1.96|FADESOUND]]
5 '''fadeSound''' 0.1
[[Category:Scripting Commands OFP 1.46|FADESOUND]]
[[Category:Scripting Commands ArmA|FADESOUND]]

Revision as of 00:08, 2 August 2006

Hover & click on the images for description

Description

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

Syntax

Syntax:
time fadeSound volume
Parameters:
time: Number - the time in seconds
volume: Number - sound 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 fadeSound 0

Additional Information

See also:
fadeMusic

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