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 - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(4 intermediate revisions by the same user not shown)
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]]
Line 16: Line 16:
|r1= [[String]]
|r1= [[String]]


|x1= <code>[[speaker]] [[player]]; {{cc|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