Arma 3 Scripting

closeDisplay

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · Markdown · JSON · original wiki page

Description

Closes given display with exit code. It does not instantly close the display but does it on next simulation cycle. Most common exit codes are:

#define IDC_OK        1 // emulate "OK" button
#define IDC_CANCEL    2 // emulate "Cancel" button

Important

Sometimes when one display is opened on top of another display the previous display may not close properly; some display EHs such as "onUnload" may never fire. Use this command to manually handle such displays.

Syntax

display closeDisplay exitCode

Parameters:

Returns: Nothing

Examples

Example 1

_display closeDisplay 1;

Example 2

#define IDC_OK 1
_display closeDisplay IDC_OK;

See also

createDisplay · closeDialog