OpenMenu: Difference between revisions

From Zandronum Wiki
(Created page with "{{ACSWarning}}{{DevTopicWarning|acs-menufunctions|type=an ACS function|mr=11|mrtitle=ACS functions: "OpenMenu" and "CloseMenu"}} int '''OpenMenu''' (str ''name'') == Usage == Opens a menu. This function can only be used in <tt>CLIENTSIDE</tt> scripts. === Parameters === * ''name'': The name of the menu, as defined in MENUDEF. === Return value === Returns '''1''' if the menu was opened successfully, or '''0''' on error (e.g. if the menu does not exist). == Ex...")
Tag: Source edit
 
(Specify it affects the activating player)
Tag: Source edit
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ACSWarning}}{{DevTopicWarning|acs-menufunctions|type=an [[ACS]] function|mr=11|mrtitle=ACS functions: "OpenMenu" and "CloseMenu"}}
{{ACSWarning}}
int '''OpenMenu''' (str ''name'')
{{DevfeatureWarning|version=3.2|type=an [[ACS]] function}}
int '''OpenMenu''' (str ''name'') {{Devfeature|3.2|alpha}}


== Usage ==  
== Usage ==  
Opens a menu. This function can only be used in <tt>CLIENTSIDE</tt> scripts.
Opens a menu for the activating player.


=== Parameters ===
=== Parameters ===

Latest revision as of 23:12, 28 January 2024

This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.
This article documents an ACS function which is only available in development builds of Zandronum 3.2 and newer.

int OpenMenu (str name) (development version 3.2-alpha and above only)

Usage

Opens a menu for the activating player.

Parameters

  • name: The name of the menu, as defined in MENUDEF.

Return value

Returns 1 if the menu was opened successfully, or 0 on error (e.g. if the menu does not exist).

Examples

This article lists no examples, please add one.

See also