say2D: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ") |
Lou Montana (talk | contribs) m (Text replacement - " \|(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=") |
||
Line 29: | Line 29: | ||
|r1= [[Nothing]] | |r1= [[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 51: | Line 51: | ||
|r3= [[Nothing]] | |r3= [[Nothing]] | ||
|s4 = [from, to] [[say2D]] [sound, maxTitlesDistance, speed] | |s4= [from, to] [[say2D]] [sound, maxTitlesDistance, speed] | ||
|p61= from: [[Object]] - Origin of the sound | |p61= from: [[Object]] - Origin of the sound |
Revision as of 23:28, 10 June 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