getPlayerChannel: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
No edit summary
Line 42: Line 42:


[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on August 6, 2015 - 21:00 (UTC)</dd>
<dt class="note">[[User:Will|Will]]</dt>
<dd class="note">At the moment direct channel will dont trigger the command... return -1... (feedback-TrackerID: 25074)
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 23:00, 6 August 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:
setCurrentChannelcurrentChannel

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 dont trigger the command... return -1... (feedback-TrackerID: 25074)