Jump to content
johnnyboy

hide action scroll menu from script

Recommended Posts

When player commands AI units by selecting units, the action menu pops up.  Action menu goes away after action selected or all units de-selected.

 

I am using a wheel menu to command units that does the following:

	_units = groupSelectedUnits player;
	if (count _units == 0) then 
	{
		{ player groupSelectUnit [_x, true];} forEach units group player;
		_units = groupSelectedUnits player;
	};
	private _destination = screenToWorld [.5,.5];
	_units commandMove _destination; 
	....Do other top-secret cool johnnyboy stuff here...
	{ player groupSelectUnit [_x, false];} forEach units group player; // hides move to cursor on players screen

The last line deselects all the units, so the cursor target is no longer displayed on screen, but the action menu is still displayed even though  no units are currently selected.

 

Is there a command to hide the action menu?  

 

Its annoying that player has to right-click to hide action menu after using my wheel menu choice.

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

×