fadeSpeech: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (fadeSound -> fadeSpeech)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2")
 
(53 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2oa |= Game name
|game1= arma2oa
|version1= 1.50


|1.51|= Game version
|game2= tkoh
____________________________________________________________________________________________
|version2= 1.00


| Cause a smooth change in the master speech volume. The change duration is given by time, the target volume by volume. The default master is 1.0. |= Description
|game3= arma3
____________________________________________________________________________________________
|version3= 0.50


| time '''fadeSpeech''' volume |= Syntax
|eff= local


|p1= time: [[Number]] |=
|gr1= Sounds
|p2= volume: [[Number]] |=  


| [[Nothing]] |= Return value
|descr= Changes the master speech volume smoothly within the given time. The default volume is 1.0. Some of the sounds that play through speech channel are:
____________________________________________________________________________________________
* [[Arma 3: Difficulty Settings| Tactical Ping]] sound
* [[playSound]] when ''isSpeech'' argument is [[true]]
* [[say3D]] when ''isSpeech'' argument is [[true]]


|x1= <pre>5 fadeSpeech 0.1;</pre> |=
|s1= time [[fadeSpeech]]  volume
____________________________________________________________________________________________


| |= See also
|p1= time: [[Number]] - fade interval in seconds


}}
|p2= volume: [[Number]] - speech volume range 0 to 2


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>5 fadeSpeech 0.1;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[speechVolume]] [[fadeRadio]] [[fadeSound]] [[fadeMusic]] [[fadeEnvironment]] [[environmentVolume]] [[soundVolume]] [[musicVolume]] [[radioVolume]]
 
}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:ArmA 2 OA: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:49, 8 November 2023

Hover & click on the images for description

Description

Description:
Changes the master speech volume smoothly within the given time. The default volume is 1.0. Some of the sounds that play through speech channel are:
Groups:
Sounds

Syntax

Syntax:
time fadeSpeech volume
Parameters:
time: Number - fade interval in seconds
volume: Number - speech volume range 0 to 2
Return Value:
Nothing

Examples

Example 1:
5 fadeSpeech 0.1;

Additional Information

See also:
speechVolume fadeRadio fadeSound fadeMusic fadeEnvironment environmentVolume soundVolume musicVolume radioVolume

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