ACS functions: "OpenMenu" and "CloseMenu"
This adds two ACS functions that allow opening or closing of menus defined in MENUDEF
. Some mods are known to use the openmenu
and closemenu
CCMDs with ConsoleCommand
to do the same thing in the past.
-
OpenMenu( str name )
-
CloseMenu( void )
-
name
is the name of the menu to open. -
These functions can't be executed on the server's end and should be used in
CLIENTSIDE
scripts. -
Returns 1 if the menu was opened or closed successfully, 0 on failure (e.g. the specified menu doesn't exist, or
CloseMenu
was called when the client isn't in a menu).