speaker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[Cc]ategory:[ _]?Arma[ _]3:[ _]([^|]*)[ _]?\|.*\]\]" to "{{GameCategory|arma3|$1}}")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


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


|1.02|Game version=
|gr1= Unit Identity


|gr1= Unit Identity |GROUP1=
|gr2= Sounds


|gr2= Sounds |GROUP2=
|descr= Returns the speaker class name of a unit.
____________________________________________________________________________________________


| Returns the speaker of a person. |DESCRIPTION=
|s1= [[speaker]] unit
____________________________________________________________________________________________


| '''speaker''' person |SYNTAX=
|p1= unit: [[Object]]


|p1= person: [[Object]] |PARAMETER1=
|r1= [[String]]
| [[String]] |RETURNVALUE=


|x1= <sqf>speaker player; // Can return "male09eng"</sqf>


|x1= <code>[[speaker]] [[player]];</code>|EXAMPLE1=
|seealso= [[setSpeaker]]
 
____________________________________________________________________________________________
 
| [[setSpeaker]] |SEEALSO=
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New_Scripting_Commands_List}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 10:25, 13 May 2022

Hover & click on the images for description

Description

Description:
Returns the speaker class name of a unit.
Groups:
Unit IdentitySounds

Syntax

Syntax:
speaker unit
Parameters:
unit: Object
Return Value:
String

Examples

Example 1:
speaker player; // Can return "male09eng"

Additional Information

See also:
setSpeaker

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