Arma 3 Scripting

Command in GUI Control

closeDialog

Also available as Markdown and JSON, or read the original wiki page.

Description

Closes the currently active dialog with exit code. It does not instantly close the dialog 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

Syntax

closeDialog exitcode

Parameters:

Returns: Nothing

Examples

Example 1

closeDialog 2;

Example 2

#define IDC_CANCEL 2
closeDialog IDC_CANCEL;

See also

createDialog · dialog · closeDisplay