setSpeaker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dl class='command_description'>" to "<dl class="command_description">")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
 
|version1= 1.02
|1.02


|arg= global
|arg= global
Line 13: Line 12:
|gr2= Sounds
|gr2= Sounds


| Sets the speaker of a person. In order to [[setSpeaker]] dynamically in MP, the command needs to run on every computer with exactly the same params otherwise the speaking unit could appear silent on other PCs. Run this on server: <br><br>
|descr= Sets the speaker of a person.


<tt>[bob, "Male02GRE"] [[remoteExec]] ["setSpeaker", 0, bob];</tt>
|mp= The command needs to run on every computer with exactly the same arguments, otherwise the speaking unit could appear silent on other PCs.


| person '''setSpeaker''' speaker
|s1= person [[setSpeaker]] speaker


|p1= person: [[Object]]
|p1= person: [[Object]]
|p2= speaker: [[String]] - The used voice type
| [[Nothing]]


|x1= <code>unit1 [[setSpeaker]] "Male02GRE";
|p2= speaker: [[String]] - the used voice type, see [[Arma 3: CfgIdentities#Speakers|{{arma3}} Speakers]]
</code>
 
|r1= [[Nothing]]
 
|x1= <code>unit1 [[setSpeaker]] "Male02GRE";</code>


|seealso= [[speaker]], [[disableConversation]], [[enableRadio]], [[enableSentences]], [[showSubtitles]], [[setIdentity]], [[setFace]]
|seealso= [[speaker]], [[disableConversation]], [[enableRadio]], [[enableSentences]], [[showSubtitles]], [[setIdentity]], [[setFace]]
Line 30: Line 30:


<dl class="command_description">
<dl class="command_description">
<dt><dt>
<dd class="notedate">Posted on September 19, 2013</dd>
<dt class="note">[[User:kylania|kylania]]<dd class="note">
'''speaker''' can be any of the following:
Male01ENG
Male01ENGB
Male01GRE
Male01PER
Male02ENG
Male02ENGB
Male02GRE
Male02PER
Male03ENG
Male03ENGB
Male03GRE
Male03PER
Male04ENG
Male04ENGB
Male04GRE
Male05ENG
Male06ENG
Male07ENG
Male08ENG
Male09ENG
<dt><dt>
<dt><dt>
<dd class="notedate">Posted on January 12, 2014 - 15:12 UTC</dd>
<dd class="notedate">Posted on January 12, 2014 - 15:12 UTC</dd>
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="note">
<dd class="note">
'''speakers available''' in Arma 3 (v1.08) :
'''speakers available''' in {{arma3}} (v1.08):
<table style="border: solid 0.0625em #000; box-shadow: .5em .5em .5em #888; font-size: .95em; min-width: 50%;">
<table style="border: solid 0.0625em #000; box-shadow: .5em .5em .5em #888; font-size: .95em; min-width: 50%">
<tr>
<tr>
<th>Gender</th>
<th>Gender</th>
Line 68: Line 44:
</tr>
</tr>
<tr>
<tr>
<th rowspan="9" style="border-right: solid .25em blue;">Male</th>
<th rowspan="9" style="border-right: solid .25em blue">Male</th>
<td>Male01_F</td>
<td>Male01_F</td>
<td>Male01ENG(B)</td>
<td>Male01ENG(B)</td>
Line 123: Line 99:
</tr>
</tr>
<tr>
<tr>
<th rowspan="1" style="border-right: solid .25em pink;">Female</th>
<th rowspan="1" style="border-right: solid .25em pink">Female</th>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
Line 129: Line 105:
<td>-</td>
<td>-</td>
</tr>
</tr>
<!-- ? -->
<!--
<tr>
<td>Female01_F</td>
<td>Female01ENG(B)</td>
<td>Female01GRE</td>
<td>Female01PER</td>
</tr>
-->
</table>
</table>
</dd>


</dl>
<dl class="command_description">
<dt></dt>
<dt></dt>
<dd class="notedate">Posted on November 10, 2014 - 22:07 (UTC)</dd>
<dd class="notedate">Posted on November 10, 2014 - 22:07 (UTC)</dd>

Revision as of 01:18, 9 June 2021

Hover & click on the images for description

Description

Description:
Sets the speaker of a person.
Multiplayer:
The command needs to run on every computer with exactly the same arguments, otherwise the speaking unit could appear silent on other PCs.
Groups:
Unit IdentitySounds

Syntax

Syntax:
person setSpeaker speaker
Parameters:
person: Object
speaker: String - the used voice type, see Arma 3 Speakers
Return Value:
Nothing

Examples

Example 1:
unit1 setSpeaker "Male02GRE";

Additional Information

See also:
speakerdisableConversationenableRadioenableSentencesshowSubtitlessetIdentitysetFace

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 January 12, 2014 - 15:12 UTC
Lou Montana
speakers available in Arma 3 (v1.08):
Gender Profile setting US English
(B) for EN-GB available
Greek Persian
Male Male01_F Male01ENG(B) Male01GRE Male01PER
Male02_F Male02ENG(B) Male02GRE Male02PER
Male03_F Male03ENG(B) Male03GRE Male03PER
Male04_F Male04ENG(B) Male04GRE Male01PER
Male05_F Male05ENG Male05GRE Male02PER
Male06_F Male06ENG Male02GRE Male03PER
Male07_F Male07ENG Male03GRE Male01PER
Male08_F Male08ENG Male04GRE Male02PER
Male09_F Male09ENG Male01GRE Male03PER
Female - - - -
Posted on November 10, 2014 - 22:07 (UTC)
Deadfast
In order to stop a unit from talking you can use: _unit setSpeaker "NoVoice" This will have no negative effect on the ability to command the unit.