say2D: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
m (formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |||
|version2= 1.51 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|arg= global | |arg= global | ||
Line 11: | Line 23: | ||
|gr1= Sounds | |gr1= Sounds | ||
| Plays given sound in 2D | |descr= Plays given sound in 2D. | ||
|s1= from [[say2D]] sound | |||
|p1= from: [[Object]] - Origin of the sound | |||
| | |p2= sound: [[String]] - Class name of the sound to be played. Defined in CfgSounds including [[Description.ext]] | ||
| | |r1= [[Nothing]] | ||
| [[ | |s2 = from [[say2D]] [sound, maxTitlesDistance, speed] | ||
| | |p21= from: [[Object]] - Origin of the sound | ||
|p22= sound: [[String]] - Class name of the sound to be played. Defined in CfgSounds including [[Description.ext]] | |||
|p22 | |||
| | |p24= maxTitlesDistance: [[Number]] (optional, default 100) - Max. distance in meters at which the sound can be heard | ||
| | |p25= speed: [[Number]] (optional, default 1) - Pitch of the sound | ||
| | |r2= [[Nothing]] | ||
| | |s3= [from, to] [[say2D]] sound | ||
| | |p41= from: [[Object]] - Origin of the sound | ||
| | |p42= to: [[Object]] - Target | ||
| r4= [[Nothing]] | |p43= sound: [[String]] - Class name of the sound to be played. Defined in CfgSounds including [[Description.ext]] | ||
|r3= [[Nothing]] | |||
|s4 = [from, to] [[say2D]] [sound, maxTitlesDistance, speed] | |||
|p61= from: [[Object]] - Origin of the sound | |||
|p62= to: [[Object]] - Target | |||
|p63= sound: [[String]] - Class name of the sound to be played. Defined in CfgSounds including [[Description.ext]] | |||
|p64= maxTitlesDistance: [[Number]] (optional, default 100) - Max. distance in meters at which the sound can be heard | |||
|p65= speed: [[Number]] (optional, default 1) - Pitch of the sound | |||
|r4= [[Nothing]] | |||
|x1= <code>[[player]] [[say2D]] "HelloThere";</code> | |x1= <code>[[player]] [[say2D]] "HelloThere";</code> | ||
Line 57: | Line 75: | ||
|seealso= [[say]], [[say3D]], [[playSound]], [[createSoundSource]] | |seealso= [[say]], [[say3D]], [[playSound]], [[createSoundSource]] | ||
}} | }} | ||
Revision as of 09:45, 28 March 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 - Class name 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: String - Class name of the sound to be played. Defined in CfgSounds including Description.ext
- maxTitlesDistance: Number (optional, default 100) - Max. distance in meters at which the sound can be heard
- speed: Number (optional, default 1) - Pitch of the sound
- Return Value:
- Nothing
Syntax 3
- Syntax:
- [from, to] say2D sound
- Parameters:
- from: Object - Origin of the sound
- to: Object - Target
- sound: String - Class name 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: Object - Origin of the sound
- to: Object - Target
- sound: String - Class name of the sound to be played. Defined in CfgSounds including Description.ext
- maxTitlesDistance: Number (optional, default 100) - Max. distance in meters at which the sound can be heard
- speed: Number (optional, default 1) - Pitch of the sound
- 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