{"name":"getPlayerChannel","operator":null,"title":"getPlayerChannel","type":"command","url":"https://community.bistudio.com/wiki/getPlayerChannel","revid":376827,"updated":"2025-11-23T01:44:27Z","groups":["Radio and Chat"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.42"}],"since":{"game":"arma3","name":"Arma 3","version":"1.42"},"arma3_since":"1.42","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns channel number for given player, **provided that player is SPEAKING**, otherwise -1. Having mic on is not enough, player has to make a sound. There are several limitations to this command:\n- It does not work on dedicated server, the return is always -1, only client can detect other client talking.\n- Prior to Arma 3 v2.01.146856 did not detect when someone talked on direct chat at all anywhere.\n- The client on which command is executed has to able to receive transmission before the transmission channel can be detected. For example if a player is not in the same group as a speaker and the speaker speaks on Group Channel, the player cannot hear the speaker and therefore cannot detect what channel the speaker is on.\nIn short, this command mimics the speaking icon from the UI. Correspondence between channel and number:\n\n| channel ID number correspondence |  |  |  |  |  |  |  |  |  |  |  |  |\n|---|---|---|---|---|---|---|---|---|---|---|---|---|\n| N/A | Global | Side | Command | Group | Vehicle | Direct | Custom1 | .. | Custom10 | Arma 3 v2.22 Custom11 | .. | Custom50 |\n| -1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 15 | 26 | 65 |  |  |","syntaxes":[{"syntax":"getPlayerChannel player","since":null,"effect":null,"exec":null,"params":[{"name":"player","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"player: Object"}],"returns":{"type":"Number","types":["Number"],"description":"channel ID","text":"Number - channel ID"},"form":"unary","operator":null,"left":null,"right":{"text":"player","types":["Object"]}}],"examples":[{"text":"```sqf\nprivate _channelID = getPlayerChannel player;\n```","code":["private _channelID = getPlayerChannel player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setCurrentChannel","currentChannel","enableChannel","channelEnabled","radioChannelCreate","radioChannelInfo"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Radio and Chat","Introduced with Arma 3 version 1.42","Scripting Commands"]}