Arma 3 Scripting

Command in GUI Control

ctrlGetProperty

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

Description

Returns one or multiple given properties of given control.

Syntax

Syntax 1

control ctrlGetProperty property

Parameters:

Returns: Anything - Return value depends on the property

Syntax 2

control ctrlGetProperty properties

Parameters:

Returns: HashMap in format:

Examples

Example 1

_ctrl ctrlGetProperty "x"; // Return 0.015

Example 2

_ctrl ctrlGetProperty ["x", "colorBackground"]; // Return {"x": 0.015, "colorBackground": [1, 0.4, 1, 1]}

See also

ctrlSetProperty