Communication Menu – Arma 3
mNo edit summary |
(→Config) |
||
Line 13: | Line 13: | ||
=== Config === | === Config === | ||
Communication menu items can be defined in config - global [[Config.cpp]], campaign [[Description.ext]] or mission Description.ext (searched in this order, the latter has the highest priority). | Communication menu items can be defined in config - global [[Config.cpp]], campaign [[Description.ext]] or mission Description.ext (searched in this order, the latter has the highest priority). | ||
[[File:CommunicationMenuIconsA3Beta.jpg|thumb|Preview and path for icons]] | |||
class CfgCommunicationMenu | class CfgCommunicationMenu | ||
Line 19: | Line 21: | ||
{ | { | ||
text = "Artillery Strike"; {{codecomment|// Text displayed in the menu and in a notification}} | text = "Artillery Strike"; {{codecomment|// Text displayed in the menu and in a notification}} | ||
submenu = ""; {{codecomment|// Submenu opened upon activation}} | submenu = ""; {{codecomment|// Submenu opened upon activation (expression is ignored when submenu is not empty.)}} | ||
expression = "player setVariable ['BIS_SUPP_request', ['Artillery', _pos]];"; {{codecomment|// Code executed upon activation | expression = "player setVariable ['BIS_SUPP_request', ['Artillery', _pos]];"; {{codecomment|// Code executed upon activation}} | ||
icon = "\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\artillery_ca.paa"; {{codecomment|// Icon displayed permanently next to the command menu}} | icon = "\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\artillery_ca.paa"; {{codecomment|// Icon displayed permanently next to the command menu}} | ||
cursor = "\a3\Ui_f\data\IGUI\Cfg\Cursors\iconCursorSupport_ca.paa"; {{codecomment|// Custom cursor displayed when the item is selected}} | cursor = "\a3\Ui_f\data\IGUI\Cfg\Cursors\iconCursorSupport_ca.paa"; {{codecomment|// Custom cursor displayed when the item is selected}} | ||
Line 27: | Line 29: | ||
}; | }; | ||
}; | }; | ||
You can preview pre-defined items using the config viewer. | |||
You can also preview pre-defined items using the config viewer. | |||
=== Adding === | === Adding === |
Revision as of 06:23, 1 July 2013
Communication menu is a commanding menu where support or mission requests are placed.
The player can access it using following means:
- Open the quick command menu ('~' by default) and select "Communication" item
- Press 8-1 (Reply - Communication)
Available items are announced upon adding by a Notification and remain visualized as icons next to the commanding menu.
Configuration
Config
Communication menu items can be defined in config - global Config.cpp, campaign Description.ext or mission Description.ext (searched in this order, the latter has the highest priority).
class CfgCommunicationMenu { class myArtillery { text = "Artillery Strike"; // Text displayed in the menu and in a notification submenu = ""; // Submenu opened upon activation (expression is ignored when submenu is not empty.) expression = "player setVariable ['BIS_SUPP_request', ['Artillery', _pos]];"; // Code executed upon activation icon = "\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\artillery_ca.paa"; // Icon displayed permanently next to the command menu cursor = "\a3\Ui_f\data\IGUI\Cfg\Cursors\iconCursorSupport_ca.paa"; // Custom cursor displayed when the item is selected enable = "1"; // Simple expression condition for enabling the item removeAfterExpressionCall = 1; // 1 to remove the item after calling }; };
You can also preview pre-defined items using the config viewer.
Adding
Use following functions to add the item in your mission or system:
Number of slots is limited to 10, no pagination is implemented. Larger number is an edge case, no mission should need as many supports.
Expression Arguments
Following arguments are passed into the expression field:
[caller,pos,target,is3D,ID]