getPlayerChannel: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
Killzone Kid (talk | contribs) (removed bug not, this is not a bug but how engine does it, this is added to description) |
||
Line 47: | Line 47: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Radio_Control|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Radio_Control|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 22:01, 2 February 2016
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 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.
- 0 = Global
- 1 = Side
- 2 = Command
- 3 = Group
- 4 = Vehicle
- 5 = Direct (Is not detected by getPlayerChannel)
- 6-15 = Custom Radio (see radioChannelCreate)
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_channel = getPlayerChannel player;
Additional Information
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
[[Category:Introduced with a3 version 1.42]][[ Category: a3: New Scripting Commands | GETPLAYERCHANNEL]][[ Category: a3: Scripting Commands | GETPLAYERCHANNEL]]