speaker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
m (Text replacement - "\|s([0-9])\= '''([^' ]+)'''([^ ]+) " to "|s$1= $2$3 ")
Line 10: Line 10:
|descr= Returns the speaker class name of a unit.
|descr= Returns the speaker class name of a unit.


|s1= '''speaker''' unit
|s1= [[speaker]] unit


|p1= unit: [[Object]]
|p1= unit: [[Object]]

Revision as of 18:10, 20 June 2021

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