{"name":"ctrlGetProperty","operator":null,"title":"ctrlGetProperty","type":"command","url":"https://community.bistudio.com/wiki/ctrlGetProperty","revid":379130,"updated":"2026-10-09T16:30:40Z","groups":["GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.24"}],"since":{"game":"arma3","name":"Arma 3","version":"2.24"},"arma3_since":"2.24","branch":"dev","locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Returns one or multiple given properties of given control.","syntaxes":[{"syntax":"control ctrlGetProperty property","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"},{"name":"property","type":"String","optional":false,"default":null,"description":"Any property available for given control type. Case insensitive","types":["String"],"since":null,"text":"property: String - Any property available for given control type. Case insensitive"}],"returns":{"type":"Anything","types":["Anything"],"description":"Return value depends on the property","text":"Anything - Return value depends on the property"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"property","types":["String"]}},{"syntax":"control ctrlGetProperty properties","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":null,"types":["Control"],"since":null,"text":"control: Control"},{"name":"properties","type":"Array of Strings","optional":false,"default":null,"description":"Properties available for given control type. Case insensitive","types":["Array","String"],"since":null,"text":"properties: Array of Strings - Properties available for given control type. Case insensitive"}],"returns":{"type":"HashMap in format:","types":["HashMap"],"description":"key: String - Name of the property - value: Anything - Value depends on the property","text":"HashMap in format:\n- key: String -  Name of the property\n- value: Anything - Value depends on the property"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"properties","types":["Array","String"]}}],"examples":[{"text":"```sqf\n_ctrl ctrlGetProperty \"x\"; // Return 0.015\n```","code":["_ctrl ctrlGetProperty \"x\"; // Return 0.015"]},{"text":"```sqf\n_ctrl ctrlGetProperty [\"x\", \"colorBackground\"]; // Return {\"x\": 0.015, \"colorBackground\": [1, 0.4, 1, 1]}\n```","code":["_ctrl ctrlGetProperty [\"x\", \"colorBackground\"]; // Return {\"x\": 0.015, \"colorBackground\": [1, 0.4, 1, 1]}"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlSetProperty"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Arma 3: Scripting Commands: Development Branch","Command Group: GUI Control","Introduced with Arma 3 version 2.24","Scripting Commands","Scripting Commands: Local Effect"]}