setCurrentChannel: Difference between revisions

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


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


| Sets given channel as current channel |= Description
| Sets given channel as current channel. Returns [[true]] on success. Channel / Number correspondence:
* 0 - Global
* 1 - Side
* 2 - Command
* 3 - Group
* 4 - Vehicle
* 5 - Direct
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''setCurrentChannel''' player |= Syntax
| '''setCurrentChannel''' channel |= Syntax


|p1= player: [[Object]] |= Parameter 1
|p1= channel: [[Number]] |= Parameter 1


| nothing |= Return value
| [[Boolean]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[setCurrentChannel]] [[player]];</code> |= Example 1
|x1= <code>_isset = [[setCurrentChannel]] 5;</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 18:34, 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:
Sets given channel as current channel. Returns true on success. Channel / Number correspondence:
  • 0 - Global
  • 1 - Side
  • 2 - Command
  • 3 - Group
  • 4 - Vehicle
  • 5 - Direct
Groups:
Uncategorised

Syntax

Syntax:
setCurrentChannel channel
Parameters:
channel: Number
Return Value:
Boolean

Examples

Example 1:
_isset = setCurrentChannel 5;

Additional Information

See also:
getPlayerChannelcurrentChannel

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 | SETCURRENTCHANNEL]][[ Category: a3: Scripting Commands | SETCURRENTCHANNEL]]

Notes

Bottom Section