{"name":"ctrlSetProperty","title":"ctrlSetProperty","type":"command","url":"https://community.bistudio.com/wiki/ctrlSetProperty","revid":379135,"updated":"2026-10-12T14:41:15Z","groups":["GUI Control"],"status":"ok","games":{"arma3":"2.24"},"since":"arma3 2.24","arma3_since":"2.24","branch":["dev"],"locality":{"argument":"local","effect":"local"},"description":"Sets one or multiple given properties of given control.","syntaxes":[{"syntax":"control ctrlSetProperty property","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"property","type":"Array in format [name, value]:","description":"Array in format [name, value]:\n\n- name: String - Name of the property, case insensitive\n- value: Anything- Value depends on the property","type_expr":"Array","text":"property: Array in format [name, value]:\n\n- name: String - Name of the property, case insensitive\n- value: Anything- Value depends on the property"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"property"}},{"syntax":"control ctrlSetProperty properties","params":[{"name":"control","type":"Control","type_expr":"Control"},{"name":"properties","type":"HashMap in format:","description":"HashMap in format:\n\n- key: String - Name of the property, case insensitive\n- value: Anything - Value depends on the property","type_expr":"HashMap","text":"properties: HashMap in format:\n\n- key: String - Name of the property, case insensitive\n- value: Anything - Value depends on the property"}],"returns":null,"form":"binary","left":{"text":"control"},"right":{"text":"properties"}}],"examples":[{"code":["_ctrl ctrlSetProperty [\"x\", 0.015];"]},{"text":"```sqf\n_ctrl ctrlSetProperty #{\n    \"x\": 0.015,\n    \"colorBackground\": [1, 0.4, 1, 1]\n}\n```","code":["_ctrl ctrlSetProperty #{\n\t\"x\": 0.015, \n\t\"colorBackground\": [1, 0.4, 1, 1]\n}"]}],"see_also":["ctrlGetProperty"]}