Set the action of a control of the currently active user dialog. The script statement is executed on button release and _this is available, but contains ""; See Arma: GUI Configuration for more information about user dialogs. Works with:
When using buttonSetAction for an ActiveText control from a script, you cannot use any variables local to the script in it.
/* This will print 'any bar' in the hint box,
since _foo has no value according to buttonSetAction */_foo = "foo";
buttonSetAction [100, "hint format [""%1 bar"", _foo];"];
Molaron
This command does not overwrite the button's action that was set via "action" in the .hpp of the dialog.
Nomisum
To use variables local to the defining script, a syntax like the one below needs to be used: