say: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(global command)
(Formatted comment.)
Line 40: Line 40:
<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
This command is global and transmitted across the network. Execute it on the server only in your multiplayer missions, otherwise each player's execution will transmit and replicate across the network. Hence, you will get the sound being played however many times there are players on the server.
 
<dd class="notedate">Posted on June 7, 2010 - 02:55</dd>
<dt class="note">'''[[User:Generalcarver|Generalcarver]]'''</dt><dd class="note">This command is global and transmitted across the network. Execute it on the server only in your multiplayer missions, otherwise each player's execution will transmit and replicate across the network. Hence, you will get the sound being played however many times there are players on the server.</dd>
 
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SAY]]
[[Category:Scripting Commands|SAY]]
[[Category:Scripting Commands OFP 1.96|SAY]]
[[Category:Scripting Commands OFP 1.96|SAY]]

Revision as of 12:44, 7 June 2010

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 classname. Defined in Description.ext
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

Posted on June 7, 2010 - 02:55
Generalcarver
This command is global and transmitted across the network. Execute it on the server only in your multiplayer missions, otherwise each player's execution will transmit and replicate across the network. Hence, you will get the sound being played however many times there are players on the server.

Bottom Section