say2D: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(35 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| arma2 |= | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
| | |arg= global | ||
| | |eff= local | ||
| | |gr1= Sounds | ||
| | |descr= Plays given sound in 2D. | ||
| | |s1= from [[say2D]] sound | ||
| | |p1= from: [[Object]] or [[Array]] of [[Object]]s | ||
* [[Object]] - the sound source | |||
* [[Array]] - format [from, to]: | |||
** from: [[Object]] - sound source | |||
** to: [[Object]] - target | |||
| | |p2= sound: [[String]] or [[Array]] | ||
* [[String]] - class name of the sound to be played. Defined in CfgSounds including [[Description.ext]] | |||
* [[Array]] - format [sound, maxTitlesDistance, speed]: | |||
** 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 | |||
| | |r1= [[Nothing]] | ||
| | |x1= <sqf>player say2D "HelloThere";</sqf> | ||
| | |x2= <sqf>[player, _officer] say2D ["HelloThere", 50, 0.9];</sqf> | ||
| | |seealso= [[say]] [[say3D]] [[playSound]] [[createSoundSource]] [[playSoundUI]] | ||
}} | }} | ||
Revision as of 16:07, 25 February 2023
Description
- Description:
- Plays given sound in 2D.
- Groups:
- Sounds
Syntax
- Syntax:
- from say2D sound
- Parameters:
- from: Object or Array of Objects
- sound: String or Array
- String - class name of the sound to be played. Defined in CfgSounds including Description.ext
- Array - format [sound, maxTitlesDistance, speed]:
- 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
- Example 1:
- Example 2:
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