say: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SAY]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SAY]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SAY]]


| ofpr |= Game name


<h2 style="color:#000066">'''''unit'' say ''speechname'''''</h2>
|1.75|= Game version
____________________________________________________________________________________________


| Format of speechName is [sound, maxTitlesDistance]. Unit will say given sound. When unit is 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 camera is not within given range, title is not shown and the sound will not be heard. Sound is defined in [[description.ext]]. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| unit '''say''' speechname |= Syntax


'''unit:''' [[Object]]
|p1= unit: [[Object]] |= Parameter 1


'''speechName:''' [[Array]]
|p2= speechName: [[Array]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.75'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Format of '''speechName''' is '''''[sound, maxTitlesDistance]'''''.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SAY]]
'''Unit''' will say given sound.
[[Category:Scripting Commands OFP 1.96|SAY]]
 
[[Category:Scripting Commands ArmA|SAY]]
When unit is 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 camera is not within given range, title is not shown and the sound will not be heard.
 
Sound is defined in [[Description.ext|description.ext]].

Revision as of 23:59, 1 August 2006

Hover & click on the images for description

Description

Description:
Format of speechName is [sound, maxTitlesDistance]. Unit will say given sound. When unit is 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 camera is not within given range, title is not shown and the sound will not be heard. Sound is defined in description.ext.
Groups:
Uncategorised

Syntax

Syntax:
unit say speechname
Parameters:
unit: Object
speechName: Array
Return Value:
Nothing

Examples

Examples:
Example needed

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