say: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:


When the [[Object#Unit|Unit]] is a [[Object#Person|Person]], it will also perform corresponding lipsync effect provided an appropriate .lip file has been created for this sound.
When the [[Object#Unit|Unit]] is a [[Object#Person|Person]], it will also perform corresponding lipsync effect provided an appropriate .lip file has been created for this sound.
The sounds will be queued in order of execution.


A unit that has been killed or does not exist will not say anything.
A unit that has been killed or does not exist will not say anything.


The sound will be relative to the object. Compare this with [[playSound]] which will always play a sound at the location of the player.
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.
If the camera is not within given range, title is not shown and the sound will not be heard.


Sound is defined in [[Description.ext#Sounds|CfgSounds]] of the [[Description.ext]]. |= Description
Sound is defined in CfgSound of the [[Description.ext]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| unitName '''say''' [sound, maxTitlesDistance,speed] |= Syntax
| unit '''say''' [sound, maxTitlesDistance,speed]|= Syntax


|p1= unitName: [[Object]] |= Parameter 1
|p1= unit: [[Object]]
|p2= [sound, maxTitlesDistance,speed]: [[Array]] |= Parameter 2
|p2= [sound, maxTitlesDistance,speed]: [[Array]]
|p3= sound: [[String]] |= Parameter 3
|p3= sound: [[String]]  
|p4= maxTitlesDistance: [[Number]] |= Parameter 4
|p4= maxTitlesDistance: [[Number]]  
|p5= speed: [[Number]]. Optional |= Parameter 5
|p5= speed: [[Number]]. Optional


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
Line 36: Line 34:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[say string]], [[playSound]] |= See also
| |= See also


}}
}}

Revision as of 20:08, 5 February 2009

Hover & click on the images for description

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
maxTitlesDistance: Number
speed: Number. Optional
Return Value:
Nothing

Examples

Example 1:
(units player select 1) say ["whisper1",5]

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

Notes

Bottom Section