setSpeaker: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 13: | Line 12: | ||
|gr2= Sounds |GROUP2= | |gr2= Sounds |GROUP2= | ||
| 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> | | 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> | ||
<tt>[bob, "Male02GRE"] [[remoteExec]] ["setSpeaker", 0, bob];</tt> |DESCRIPTION= | <tt>[bob, "Male02GRE"] [[remoteExec]] ["setSpeaker", 0, bob];</tt> |DESCRIPTION= | ||
| person '''setSpeaker''' speaker |SYNTAX= | | person '''setSpeaker''' speaker |SYNTAX= | ||
Line 30: | Line 27: | ||
</code>|EXAMPLE1= | </code>|EXAMPLE1= | ||
| [[speaker]], [[disableConversation]], [[enableRadio]], [[enableSentences]], [[showSubtitles]], [[setIdentity]], [[setFace]] |SEEALSO= | | [[speaker]], [[disableConversation]], [[enableRadio]], [[enableSentences]], [[showSubtitles]], [[setIdentity]], [[setFace]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 03:02, 17 January 2021
Description
- Description:
- 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:
[bob, "Male02GRE"] remoteExec ["setSpeaker", 0, bob]; - Groups:
- Unit IdentitySounds
Syntax
- Syntax:
- person setSpeaker speaker
- Parameters:
- person: Object
- speaker: String - The used voice type
- Return Value:
- Nothing
Examples
- Example 1:
unit1 setSpeaker "Male02GRE";
Additional Information
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 September 19, 2013
- kylania
- 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
- 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 availableGreek 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 - - - -
Bottom Section
- 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.