say2D: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Add examples) |
Lou Montana (talk | contribs) m (Text replacement - "{{uc:{{PAGENAME}}}}" to "") |
||
Line 70: | Line 70: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 21:25, 19 September 2019
Description
- Description:
- Plays given sound in 2D
- Groups:
- Uncategorised
Syntax 1
- Syntax:
- from say2D sound
- Parameters:
- from: Object - origin of the sound
- sound: String - classname of the sound to be played. Defined in CfgSounds including Description.ext
- Return Value:
- Nothing
Syntax 2
- Syntax:
- from say2D [sound, maxTitlesDistance, speed]
- Parameters:
- from: Object - origin of the sound
- [sound, maxTitlesDistance, speed]: Array
- sound: String - classname of the sound to be played. Defined in CfgSounds including Description.ext
- maxTitlesDistance: Number - max distance at which the sound can be heard. Default: 100 m.
- speed (Optional): Number - pitch of the sound. Default: 1.
- Return Value:
- Nothing
Syntax 3
- Syntax:
- [from, to] say2D sound
- Parameters:
- [from, to]: Array
- from: Object - origin of the sound
- to: Object - target
- sound: String - classname of the sound to be played. Defined in CfgSounds including Description.ext
- Return Value:
- Nothing
Syntax 4
- Syntax:
- [from, to] say2D [sound, maxTitlesDistance, speed]
- Parameters:
- [from, to]: Array
- from: Object - origin of the sound
- to: Object - target
- [sound, maxTitlesDistance, speed]: Array
- sound: String - classname of the sound to be played. Defined in CfgSounds including Description.ext
- maxTitlesDistance: Number - max distance at which the sound can be heard. Default: 100 m.
- speed (Optional): Number - pitch of the sound. Default: 1.
- Return Value:
- Nothing
Examples
Additional Information
- See also:
- saysay3DplaySoundcreateSoundSource
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