setSpeaker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(61 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.02


|1.02|= Game version
|arg= global
____________________________________________________________________________________________


| Sets the speaker of a person. |= Description
|eff= local
____________________________________________________________________________________________


| person '''setSpeaker''' speaker |= Syntax
|gr1= Unit Identity


|p1= person: [[Object]] |= Parameter 1
|gr2= Sounds
|p2= name: [[String]] |= Parameter 2
| [[Nothing]] |= RETURNVALUE


|descr= Sets the speaker of a person.


|x1= <code>unit1 setSpeaker "Male02GRE";
|mp= The command needs to run on every computer with exactly the same arguments, otherwise the speaking unit could appear silent on other PCs.
</code>|= EXAMPLE1


____________________________________________________________________________________________
|s1= person [[setSpeaker]] speaker


| |= SEEALSO
|p1= person: [[Object]]


| |= MPBEHAVIOUR
|p2= speaker: [[String]] - the used voice type, see [[Arma 3: CfgIdentities#Speakers|{{arma3}} Speakers]]
____________________________________________________________________________________________
 
|r1= [[Nothing]]
 
|x1= <sqf>unit1 setSpeaker "Male02GRE";</sqf>
 
|seealso= [[speaker]] [[disableConversation]] [[enableRadio]] [[enableSentences]] [[showSubtitles]] [[setIdentity]] [[setFace]] [[hasCustomFace]]
}}
}}


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


<dd class="notedate">Posted on September 19, 2013
<dt><dt>
<dt class="note">'''[[User:kylania|kylania]]'''<dd class="note">
<dd class="notedate">Posted on 2014-01-12 - 15:12 UTC</dd>
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="note">
'''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%">
<tr>
<th>Gender</th>
<th>Profile setting</th>
<th>US English<br>''(B) for EN-GB available''</th>
<th>Greek</th>
<th>Persian</th>
</tr>
<tr>
<th rowspan="9" style="border-right: solid .25em blue">Male</th>
<td>Male01_F</td>
<td>Male01ENG(B)</td>
<td>Male01GRE</td>
<td>Male01PER</td>
</tr>
<tr>
<td>Male02_F</td>
<td>Male02ENG(B)</td>
<td>Male02GRE</td>
<td>Male02PER</td>
</tr>
<tr>
<td>Male03_F</td>
<td>Male03ENG(B)</td>
<td>Male03GRE</td>
<td>Male03PER</td>
</tr>
<tr>
<td>Male04_F</td>
<td>Male04ENG(B)</td>
<td>Male04GRE</td>
<td>''Male01PER''</td>
</tr>
<tr>
<td>Male05_F</td>
<td>Male05ENG</td>
<td>Male05GRE</td>
<td>''Male02PER''</td>
</tr>
<tr>
<td>Male06_F</td>
<td>Male06ENG</td>
<td>''Male02GRE''</td>
<td>''Male03PER''</td>
</tr>
<tr>
<td>Male07_F</td>
<td>Male07ENG</td>
<td>''Male03GRE''</td>
<td>''Male01PER''</td>
</tr>
<tr>
<td>Male08_F</td>
<td>Male08ENG</td>
<td>''Male04GRE''</td>
<td>''Male02PER''</td>
</tr>
<tr>
<td>Male09_F</td>
<td>Male09ENG</td>
<td>''Male01GRE''</td>
<td>''Male03PER''</td>
</tr>
<tr>
<th rowspan="1" style="border-right: solid .25em pink">Female</th>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
</table>
</dd>


'''speaker''' can be any of the following:
<dt></dt>
Male01ENG
<dd class="notedate">Posted on 2014-11-10 - 22:07 (UTC)</dd>
Male01ENGB
<dt class="note">[[User:Deadfast|Deadfast]]</dt>
Male01GRE
<dd class="note">
Male01PER
In order to stop a unit from talking you can use:
Male02ENG
<sqf>_unit setSpeaker "NoVoice"</sqf>
Male02ENGB
This will have no negative effect on the ability to command the unit.
Male02GRE
</dd>
Male02PER
Male03ENG
Male03ENGB
Male03GRE
Male03PER
Male04ENG
Male04ENGB
Male04GRE
Male05ENG
Male06ENG
Male07ENG
Male08ENG
Male09ENG


<!-- Note Section END -->
</dl>
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:06, 30 June 2024

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:
speaker disableConversation enableRadio enableSentences showSubtitles setIdentity setFace hasCustomFace

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 2014-01-12 - 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 2014-11-10 - 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.