getPlayerChannel: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
Killzone Kid (talk | contribs) (description,see also) |
||
Line 9: | Line 9: | ||
__________________________________________________________________________________________ | __________________________________________________________________________________________ | ||
| Returns channel number given player | | 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: | ||
* 0 | * It does not work on dedicated server, the return is always -1, only client can detect other client talking. | ||
* 1 | * It does not detect when someone talks on direct chat at all anywhere. | ||
* 2 | In short, this command mimics the speaking icon from the UI. Correspondence between channel and number: | ||
* 3 | * 0 <nowiki>=</nowiki> Global | ||
* 4 | * 1 <nowiki>=</nowiki> Side | ||
* 5 | * 2 <nowiki>=</nowiki> Command | ||
* 3 <nowiki>=</nowiki> Group | |||
* 4 <nowiki>=</nowiki> Vehicle | |||
* 5 <nowiki>=</nowiki> Direct (Is not detected by [[getPlayerChannel]]) | |||
* 6+ <nowiki>=</nowiki> Custom Radio |= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 28: | Line 32: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|[[setCurrentChannel]], [[currentChannel]], [[enableChannel]] |= See also | |[[setCurrentChannel]], [[currentChannel]], [[enableChannel]], [[channelEnabled]] |= See also | ||
}} | }} |
Revision as of 21:53, 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+ = Custom Radio
- 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]]
Notes
Bottom Section
- Posted on August 6, 2015 - 21:00 (UTC)
- Will
- At the moment direct channel will not trigger the command... return -1... (feedback-TrackerID: 25074)