setCurrentChannel: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (see also) |
No edit summary |
||
Line 44: | Line 44: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Command_Group:_Radio_Control|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Radio_Control|{{uc:{{PAGENAME}}}}]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on December 9, 2015 - 16:45 (UTC)</dd> | |||
<dt class="note">[[User:Commy2|Commy2]]</dt> | |||
<dd class="note"> | |||
This command can be used together with custom radio channels, but an offset of 5 must be added to the index from radioChannelCreate. | |||
<code>_index = radioChannelCreate [[1, 0, 0, 1], "Custom Channel 1", "%UNIT_NAME", [player]]; | |||
setCurrentChannel (_index + 5); | |||
</code> | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 17:45, 9 December 2015
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
Examples
- Example 1:
_isset = setCurrentChannel 5;
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 | SETCURRENTCHANNEL]][[ Category: a3: Scripting Commands | SETCURRENTCHANNEL]]
Notes
Bottom Section
- Posted on December 9, 2015 - 16:45 (UTC)
- Commy2
-
This command can be used together with custom radio channels, but an offset of 5 must be added to the index from radioChannelCreate.
_index = radioChannelCreate [[1, 0, 0, 1], "Custom Channel 1", "%UNIT_NAME", [player]]; setCurrentChannel (_index + 5);