say2D: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 65: | Line 65: | ||
|r4= [[Nothing]] | |r4= [[Nothing]] | ||
|x1= <code> | |x1= <code>player [[say2D]] "HelloThere";</code> | ||
|x2= <code>[<nowiki/> | |x2= <code>[<nowiki/>player, _officer] [[say2D]] ["HelloThere", 50, 0.9];</code> | ||
|seealso= [[say]] [[say3D]] [[playSound]] [[createSoundSource]] [[playSoundUI]] | |seealso= [[say]] [[say3D]] [[playSound]] [[createSoundSource]] [[playSoundUI]] | ||
}} | }} |
Revision as of 11:13, 12 May 2022
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:
- say say3D playSound createSoundSource playSoundUI
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