Jump to content
Sign in to follow this  
Windwalking

Custom Communication BIS_MENU_GroupCommunication

Recommended Posts

Hi all,

I am new to Arma's franchise so forgive me if I got something wrong since I never played Arma 2. I am trying to add some custom commands to the AI commands menus accessed by the 0 to 9 keys. I do not want to add it as an action item, but rather in the command menus. When I searched over it, I found the function BIS_MENU_GroupCommunication being referenced in Arma 2 discussions. This is supposed to add a custom menu accessed by the shortcut 0 to 8. But in Arma 3 thats where support is. I am not sure if this function works at all in Arma 3. If it doesnt, what does? :D

Here is the code snippet I am trying it with. It does show the menu when I call on showCommandingMenu, but not within the actual menus.

sleep 5;
BIS_MENU_GroupCommunication = [
//--- Name, context sensitive
["User menu",false],
//--- Item name, shortcut, -5 (do not change), expression, show, enable
["Not active", [2], "", -5, [["expression", "player setdamage 1"]], "1", "0"],
["Active", [3], "", -5, [["expression", "player setdamage 1"]], "1", "1"]
]; 
showCommandingMenu "#USER:BIS_MENU_GroupCommunication";

---------- Post added at 11:10 ---------- Previous post was at 09:40 ----------

Ok with the help of this link, I kinda understand what has been changed.

http://community.bistudio.com/wiki/Arma_3_Communication_Menu

But it seems limited a little and since I want to be able to make the script into an addon later on, I can seem it will cause some problems. My question is how do you add any items to the custom section instead of the support one?

Share this post


Link to post
Share on other sites

Does anyone have a working example since alpha? I'm frying my brain here.

I've referenced the following

http://forums.bistudio.com/showthread.php?157626-Support-showcase-how-to-add-custom-support-requests

http://community.bistudio.com/wiki/Arma_3_Communication_Menu

http://community.bistudio.com/wiki/showCommandingMenu

I can't seem to make the connection between the custom entry in the description.ext and the BIS_MENU_GroupCommunication.

I'm trying to execute an sqf thru the menu.

Here is one example I tried.

class CfgCommunicationMenu
{
class Default;
class Bravo: Default
{
	text = "MH9 Little Bird";
	expression = "player execVM [""spawnHelo.sqf""];;";
	//expression = "BIS_bravoGo = TRUE;";
	icon = "\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\call_ca.paa";
	removeAfterExpressionCall = 1;
};
};

But I know the above is completely incorrect. I was frustrated and just trying crazy stuff.

But the GUI (which I'd like to keep/mimic) looks nice when I add the menu item with:

_supportHeli = [player,"Bravo"] call BIS_fnc_addCommMenuItem;

What is the correct code to the example in the first post? And how do I enable submenus correctly? Any links or example missions released recently would be appreciated.

Like the first post is it possible to use the Custom menu instead of support?

One more question. Where can I find the function/code BIS_SUPP_request? It's avoiding me in the editor.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×