getPlayerChannel: Difference between revisions
Jump to navigation
Jump to search
(wrong version) |
Killzone Kid (talk | contribs) (description) |
||
Line 6: | Line 6: | ||
|1.42|= Game version | |1.42|= Game version | ||
|arg= | |arg= global |= Arguments in MP | ||
__________________________________________________________________________________________ | __________________________________________________________________________________________ | ||
| | | Returns channel number given player speaks on or -1 otherwise. Correspondence between channel and number: | ||
* 0 - Global | |||
* 1 - Side | |||
* 2 - Command | |||
* 3 - Group | |||
* 4 - Vehicle | |||
* 5 - Direct |= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | '''getPlayerChannel''' player |= Syntax | ||
|p1= player: [[Object]] |= Parameter 1 | |p1= player: [[Object]] |= Parameter 1 | ||
Line 19: | Line 25: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_channel = [[getPlayerChannel]] [[player]];</code> | |x1= <code>_channel = [[getPlayerChannel]] [[player]];</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 17:29, 9 June 2015
Description
- Description:
- Returns channel number given player speaks on or -1 otherwise. Correspondence between channel and number:
- 0 - Global
- 1 - Side
- 2 - Command
- 3 - Group
- 4 - Vehicle
- 5 - Direct
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
_channel = getPlayerChannel player;
Additional Information
- See also:
- setCurrentChannel
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]]