Jump to content
Sign in to follow this  
Leopard20

Selecting commandingMenu items directly through script

Recommended Posts

Hello everyone.

 

Does anyone know if there's a way to select a certain commandingMenu item directly through a script?

 

For example, let's say I want to select item "Stealth" from "RscMenuCombatMode" (you can find it in config viewer, and it's the same menu as key 7 menu). How can I do that?

Share this post


Link to post
Share on other sites

Find out what the call itself does. Stealth for example could look something like this:

{
  _x setBehaviour "STEALTH";
} forEach units group player;

Then just copy it or find the call itself.

Share this post


Link to post
Share on other sites

That's not what I meant. I want to select an item from the menu and do exactly what it does.

 

Plus, being a mod maker myself, you can assume I already know basic and trivial stuff like that.

Share this post


Link to post
Share on other sites

Didn't take a look at ur profile so yeah, can't assume that most of the time here hehe. U could use showCommandingMenu to select a specific menu call, or just find it in the config like this:

player setVariable ['BIS_SUPP_request', ['Artillery', _pos]];

That does exactly what the menu does. But if u want to just select the command use showCommandingMenu. Some stuff here.

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  

×