Arma 3 Scripting

ctrlGetProperty

  • Local argument
  • Local effect
  • dev branch
  • Arma 3 v2.24

Command · Markdown · JSON · 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