Arma 3 Scripting

Command in GUI Control

buttonAction

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

Description

Returns the action assigned to a control of the currently active user dialog. Can be used for buttons and active texts. Read Arma: GUI Configuration for more information about user dialogs and controls.

Syntax

Syntax 1

buttonAction idc

Parameters:

Returns: String

Syntax 2

buttonAction control

Parameters:

Returns: String

Examples

Example 1

buttonSetAction [100, { player exec "reply.sqs" }];
_action = buttonAction 100; // Returns { player exec "reply.sqs" };

See also

buttonSetAction