Jump to content
juleshuxley

Set selected item with showCommandingMenu

Recommended Posts

So apparently showCommandingMenu takes a _pos local variable? Does this allow me to set what item in the menu is highlighted?

I can create my menu with showCommandingMenu "#User:MyArray" but how do I use _pos to set the highlight to, say, the third item?

Share this post


Link to post
Share on other sites
10 hours ago, juleshuxley said:

-snip-

 

You posted your thread in the wrong location again, ARMA 3 - ADDONS & MODS: COMPLETE is for completed addons not questions. Please check where you are before creating a thread.

Share this post


Link to post
Share on other sites
12 hours ago, juleshuxley said:

takes a _pos local variable?

Supplies a variable called _pos to the menu items expression. Which is the land position currently at the user's crosshairs.

Quote

If commanding menu has "expression" set up, the expression will receive the following arguments when user activated the menu item:

e.g How calling in support knows where the user is looking.

So no, it has nothing to do with the menu position.

  • Like 1

Share this post


Link to post
Share on other sites
44 minutes ago, Larrow said:

Supplies a variable called _pos to the menu items expression. Which is the land position currently at the user's crosshairs.

e.g How calling in support knows where the user is looking.

So no, it has nothing to do with the menu position. 


Fair enough, any idea how I can programatically control highlighted menu item? Or is it totally locked off and controlled only by mouse wheel?

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

×