Jump to content

Finding which group triggered a menu command

Recommended Posts



I'm adding a F10 menu item through missionCommands.addCommandForCoalition

Is there any way to retrieve the group or client which triggered the menu item in the called function?



Link to post
Share on other sites

I think you would have to use the 'addCommandForGroup' function to be able to know which group triggered the menu item. There isn't any equivalent 'addCommandForClient' function, so the only I know to identify the particular client is to put each client aircraft in it's own group, and use addCommandForGroup. That way if you identify the group, you've effectively narrowed it down to one client.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...