say: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (add to sounds com group)
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Format of speechName is [sound, maxTitlesDistance] or [sound, maxTitlesDistance, speed].
| Unit will say given sound.


Unit will say given 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.
 
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.
A unit that has been killed or does not exist will not say anything.
Line 19: Line 17:
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]]. |= Description
Sound is defined in CfgSound of the [[Description.ext]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''say''' speechName |= Syntax
| [[Object#Unit|Unit]] '''say''' [sound, maxTitlesDistance,speed]|= Syntax
 
|p1= unit: [[Object]] |= Parameter 1


|p2= speechName: [[Array]] |= Parameter 2
|p1= sound: [[String]]
|p2= maxTitlesDistance: [[Number]]  
|p3= speed: [[Number]]. Optional


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value

Revision as of 19:11, 29 August 2007

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:
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