User Tools

Site Tools


arma3:missions:cfgcommunicationmenu

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

arma3:missions:cfgcommunicationmenu [2019-01-26 13:38] (current)
snakeman created initial page.
Line 1: Line 1:
 +====== CfgCommunicationMenu ======
  
 +**description.ext:​**
 +<code cpp>
 +
 +class CfgCommunicationMenu
 +{
 + class PMC_Airstrike_A10
 + {
 + text = "​Airstrike A10";
 + submenu = "";​
 + expression = "_this execVM '​PMC\PMC_Airstrike.sqf';";​
 + icon = "";​
 + cursor = "";​
 + enable = "​1";​
 + removeAfterExpressionCall = 0;
 + };
 +};
 +</​code>​
 +
 +**init.sqf:​**
 +<code cpp>
 +// add communications menu for player
 +0 = [player, "​PMC_Airstrike_A10",​ nil, nil, ""​] call BIS_fnc_addCommMenuItem;​
 +</​code>​
 +
 +**PMC_Airstrike.sqf:​**
 +<code cpp>
 +// _p will be our cursor position on ground or mapview
 +_p = _this select 1;
 +</​code>​
arma3/missions/cfgcommunicationmenu.txt ยท Last modified: 2019-01-26 13:38 by snakeman