getPlayerChannel: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "Category:Command Group: Radio Control" to "")
No edit summary
Line 11: Line 11:
__________________________________________________________________________________________
__________________________________________________________________________________________


| 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:
| 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:
* It does not work on dedicated server, the return is always -1, only client can detect other client talking.
* It does not work on dedicated server, the return is always -1, only client can detect other client talking.
* It does not detect when someone talks on direct chat at all anywhere.  
* It does not detect when someone talks on direct chat at all anywhere.  

Revision as of 15:21, 24 October 2020

Hover & click on the images for description

Description

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:
  • It does not work on dedicated server, the return is always -1, only client can detect other client talking.
  • It does not detect when someone talks on direct chat at all anywhere.
  • 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.
In short, this command mimics the speaking icon from the UI. Correspondence between channel and number:
Groups:
Radio and Chat

Syntax

Syntax:
getPlayerChannel player
Parameters:
player: Object
Return Value:
Number

Examples

Example 1:
private _channel = getPlayerChannel player;

Additional Information

See also:
setCurrentChannelcurrentChannelenableChannelchannelEnabledradioChannelCreateradioChannelInfo

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

Notes

Bottom Section