Skip to content

ACS functions: "OpenMenu" and "CloseMenu"

Adam Kaminski requested to merge topic/default/acs-menufunctions into branch/default

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).

https://zandronum.com/tracker/view.php?id=4126

Merge request reports

Loading