say: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Killzone Kid (talk | contribs) No edit summary |
||
Line 50: | Line 50: | ||
|p22= sound: [[String]] - sound classname | |p22= sound: [[String]] - sound classname | ||
|p23= maxTitlesDistance: [[Number]] - max distance at which the sound can be heard | |p23= maxTitlesDistance: [[Number]] - (Optional, default 100) max distance at which the sound can be heard. | ||
|p24= speed: [[Number]] - (Optional, default 1) pitch of the sound | |p24= speed: [[Number]] - (Optional, default 1) pitch of the sound | ||
Line 74: | Line 74: | ||
|p63= sound: [[String]] - sound classname | |p63= sound: [[String]] - sound classname | ||
|p64= maxTitlesDistance: [[Number]] - max distance at which the sound can be heard | |p64= maxTitlesDistance: [[Number]] - (Optional, default 100) max distance at which the sound can be heard. | ||
|p65= speed: [[Number]] - (Optional, default 1) pitch of the sound. | |p65= speed: [[Number]] - (Optional, default 1) pitch of the sound. |
Revision as of 10:21, 13 May 2022
Description
- Description:
- Make unit say given sound. The sound is defined in CfgSounds. If the unit is a person, it will also perform corresponding lipsync effect provided an appropriate .lip file has been created for this sound.
- A dead or non-existent unit obviously cannot say anything.
- If the camera is not within given range, title is not shown and the sound will not be heard.
- See also playSound in order to play a sound wherever the camera/player is.
- Groups:
- Sounds
Syntax 1
- Syntax:
- from say sound
- Parameters:
- from: Object - origin of the sound
- sound: String - sound classname
- Return Value:
- Nothing
Syntax 2
- Syntax:
- from say [sound, maxTitlesDistance, speed]
- Parameters:
- from: Object - origin of the sound
- sound: String - sound classname
- maxTitlesDistance: Number - (Optional, default 100) max distance at which the sound can be heard.
- speed: Number - (Optional, default 1) pitch of the sound
- Return Value:
- Nothing
Syntax 3
- Syntax:
- [from, to] say sound
- Parameters:
- from: Object - origin of the sound
- to: Object - target
- sound: String - sound classname
- Return Value:
- Nothing
Syntax 4
- Syntax:
- [from, to] say [sound, maxTitlesDistance, speed]
- Parameters:
- from: Object - origin of the sound
- to: Object - target
- sound: String - sound classname
- maxTitlesDistance: Number - (Optional, default 100) max distance at which the sound can be heard.
- speed: Number - (Optional, default 1) pitch of the sound.
- Return Value:
- Nothing
Examples
- Example 1:
(units player select 1) say ["whisper1", 5];
- Example 2:
- Arma 3:
player say "scuba_breath";
Additional Information
- See also:
- say3D say2D 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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Sounds
- Scripting Commands: Local Effect