say: Difference between revisions
Jump to navigation
Jump to search
m (arma3 category) |
Killzone Kid (talk | contribs) (locality added) |
||
Line 5: | Line 5: | ||
|1.75|= Game version | |1.75|= Game version | ||
|arg= global |= Arguments in MP | |||
|eff= local |= Effects in MP | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 31: | Line 35: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>([[units]] [[player]] [[select]] 1) say ["whisper1",5]</code> |= Example 1 | |x1= <code>([[units]] [[player]] [[select]] 1) [[say]] ["whisper1",5];</code> |= Example 1 | ||
|x2= Arma 3:<code>[[player]] [[say]] "scuba_breath";</code>|= Example 2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 13:12, 8 September 2013
Description
- Description:
- Unit will say given sound. When the Unit is a Person, it will also perform corresponding lipsync effect provided an appropriate .lip file has been created for this sound. A unit that has been killed or does not exist will not say anything. Compare this with playSound which will always play a sound at the location of the player. If the camera is not within given range, title is not shown and the sound will not be heard. Sound is defined in CfgSound of the Description.ext.
- Groups:
- Uncategorised
Syntax
- Syntax:
- unit say [sound, maxTitlesDistance,speed]
- Parameters:
- unit: Object
- [sound, maxTitlesDistance,speed]: Array
- sound: String classname. Defined in Description.ext
- maxTitlesDistance: Number
- speed: Number. Optional
- Return Value:
- Nothing
Examples
Additional Information
- See also:
- say3Dsay2DplaySoundcreateSoundSource
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
Notes
- Posted on 7 March 2013
- Rocket
- Say will occur in 3D when the player is active, during cutscenes it will not. Use say3D for cutscenes.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Resistance version 1.75
- Operation Flashpoint: Resistance: New Scripting Commands
- Operation Flashpoint: Resistance: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.96
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Command Group: Sounds