speaker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\{\{cc\|([^ ]*)\}\}([^ ]*)<\/code>" to "<code>$1// $2$3</code>")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
Line 16: Line 16:
|r1= [[String]]
|r1= [[String]]


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


|seealso= [[setSpeaker]]
|seealso= [[setSpeaker]]
}}
}}

Latest revision as of 11: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