say2D: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|arg= global | |arg= global | ||
|eff= local | |eff= local | ||
|gr1= Sounds | |gr1= Sounds | ||
| Plays given sound in 2D | | Plays given sound in 2D | ||
| from [[say2D]] sound | | from [[say2D]] sound | ||
|p1= from: [[Object]] - origin of the sound | |p1= from: [[Object]] - origin of the sound | ||
|p2= sound: [[String]] - classname of the sound to be played. Defined in CfgSounds including [[Description.ext]] | |p2= sound: [[String]] - classname of the sound to be played. Defined in CfgSounds including [[Description.ext]] | ||
| [[Nothing]] | | [[Nothing]] | ||
| s2 = from [[say2D]] [sound, maxTitlesDistance, speed] | | s2 = from [[say2D]] [sound, maxTitlesDistance, speed] | ||
|p21= from: [[Object]] - origin of the sound | |p21= from: [[Object]] - origin of the sound | ||
Line 28: | Line 28: | ||
|p25= speed (Optional): [[Number]] - pitch of the sound. Default: 1. | |p25= speed (Optional): [[Number]] - pitch of the sound. Default: 1. | ||
| r2= [[Nothing]] | | r2= [[Nothing]] | ||
| s3= [from, to] [[say2D]] sound | | s3= [from, to] [[say2D]] sound | ||
|p41= [from, to]: [[Array]] | |p41= [from, to]: [[Array]] | ||
Line 37: | Line 37: | ||
|p44= sound: [[String]] - classname of the sound to be played. Defined in CfgSounds including [[Description.ext]] | |p44= sound: [[String]] - classname of the sound to be played. Defined in CfgSounds including [[Description.ext]] | ||
| r3= [[Nothing]] | | r3= [[Nothing]] | ||
| s4 = [from, to] [[say2D]] [sound, maxTitlesDistance, speed] | | s4 = [from, to] [[say2D]] [sound, maxTitlesDistance, speed] | ||
|p61= [from, to]: [[Array]] | |p61= [from, to]: [[Array]] | ||
Line 49: | Line 49: | ||
|p67= speed (Optional): [[Number]] - pitch of the sound. Default: 1. | |p67= speed (Optional): [[Number]] - pitch of the sound. Default: 1. | ||
| r4= [[Nothing]] | | r4= [[Nothing]] | ||
|x1= <code>[[player]] [[say2D]] "HelloThere";</code> | |x1= <code>[[player]] [[say2D]] "HelloThere";</code> | ||
|x2= <code><nowiki>[</nowiki>[[player]], _officer] [[say2D]] ["HelloThere", 50, 0.9];</code> | |x2= <code><nowiki>[</nowiki>[[player]], _officer] [[say2D]] ["HelloThere", 50, 0.9];</code> | ||
| [[say]], [[say3D]], [[playSound]], [[createSoundSource]] | | [[say]], [[say3D]], [[playSound]], [[createSoundSource]] | ||
| | | | ||
}} | }} | ||
Revision as of 11:02, 18 January 2021
Description
- Description:
- Plays given sound in 2D
- Groups:
- Sounds
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