getPlayerChannel: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(wrong version)
(description)
Line 6: Line 6:
|1.42|= Game version
|1.42|= Game version


|arg= local |= Arguments in MP
|arg= global |= Arguments in MP
__________________________________________________________________________________________
__________________________________________________________________________________________


| Show number of channel you temp. speaking in... |= 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 |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Number]] <nowiki>=</nowiki> '''getPlayerChannel''' player |= Syntax
| '''getPlayerChannel''' player |= Syntax


|p1= player: [[Object]] |= Parameter 1
|p1= player: [[Object]] |= Parameter 1
Line 19: Line 25:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_channel = [[getPlayerChannel]] [[player]];</code> Returns current channel in which you speak... -1 if you dont speak... |= Example 1
|x1= <code>_channel = [[getPlayerChannel]] [[player]];</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 17:29, 9 June 2015

-wrong parameter ("a3") defined!-[[:Category:Introduced with a3 version 1.42|1.42]]
Hover & click on the images for description

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

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

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]]

Notes

Bottom Section