say: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
m (Text replacement - " *\|Parameter[0-9]{1,}= * " to " ")
Line 29: Line 29:
|s2 = from [[say]] [sound, maxTitlesDistance, speed]
|s2 = from [[say]] [sound, maxTitlesDistance, speed]


|p21= from: [[Object]] - origin of the sound |Parameter21=
|p21= from: [[Object]] - origin of the sound


|p22= sound: [[String]] - sound classname |Parameter22=
|p22= sound: [[String]] - sound classname


|p23= maxTitlesDistance: [[Number]] - max distance at which the sound can be heard. Default: 100 m. |Parameter23=
|p23= maxTitlesDistance: [[Number]] - max distance at which the sound can be heard. Default: 100 m.


|p24= speed: [[Number]] - (Optional, default 1) pitch of the sound |Parameter24=
|p24= speed: [[Number]] - (Optional, default 1) pitch of the sound


|r2= [[Nothing]]
|r2= [[Nothing]]
Line 41: Line 41:
|s3= [from, to] [[say]] sound
|s3= [from, to] [[say]] sound


|p41= from: [[Object]] - origin of the sound |Parameter41=
|p41= from: [[Object]] - origin of the sound


|p42= to: [[Object]] - target |Parameter42=
|p42= to: [[Object]] - target


|p43= sound: [[String]] - sound classname |Parameter43=
|p43= sound: [[String]] - sound classname


|r3= [[Nothing]]
|r3= [[Nothing]]
Line 51: Line 51:
|s4 = [from, to] [[say]] [sound, maxTitlesDistance, speed]
|s4 = [from, to] [[say]] [sound, maxTitlesDistance, speed]


|p61= from: [[Object]] - origin of the sound |Parameter61=
|p61= from: [[Object]] - origin of the sound


|p62= to: [[Object]] - target |Parameter62=
|p62= to: [[Object]] - target


|p63= sound: [[String]] - sound classname |Parameter63=
|p63= sound: [[String]] - sound classname


|p64= maxTitlesDistance: [[Number]] - max distance at which the sound can be heard. Default: 100 m. |Parameter64=
|p64= maxTitlesDistance: [[Number]] - max distance at which the sound can be heard. Default: 100 m.


|p65= speed: [[Number]] - (Optional, default 1) pitch of the sound. |Parameter65=
|p65= speed: [[Number]] - (Optional, default 1) pitch of the sound.


| r4= [[Nothing]]
| r4= [[Nothing]]

Revision as of 17:21, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Sounds

Syntax 1

Syntax:
Syntax needed
Parameters:
from: Object - origin of the sound
sound: String - sound classname
Return Value:
Return value needed

Syntax 2

Syntax:
from say [sound, maxTitlesDistance, speed]
Parameters:
from: Object - origin of the sound
sound: String - sound classname
maxTitlesDistance: Number - max distance at which the sound can be heard. Default: 100 m.
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 - max distance at which the sound can be heard. Default: 100 m.
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:
See also needed

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
Posted on 7 March 2013
Rocket
Say will occur in 3D when the player is active, during cutscenes it will not. Use say3D to force 3D effect for cutscenes.