{"name":"ctrlSetProperty","operator":null,"title":"ctrlSetProperty","type":"command","url":"https://community.bistudio.com/wiki/ctrlSetProperty","revid":379135,"updated":"2026-10-12T14:41:15Z","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":"Sets one or multiple given properties of given control.","syntaxes":[{"syntax":"control ctrlSetProperty 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":"Array in format [name, value]:","optional":false,"default":null,"description":"Array in format [name, value]:\n- name: String - Name of the property, case insensitive\n- value: Anything- Value depends on the property","types":["Array"],"since":null,"text":"property: Array in format [name, value]:\n- name: String - Name of the property, case insensitive\n- value: Anything- Value depends on the property"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"property","types":["Array"]}},{"syntax":"control ctrlSetProperty 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":"HashMap in format:","optional":false,"default":null,"description":"HashMap in format:\n- key: String - Name of the property, case insensitive\n- value: Anything - Value depends on the property","types":["HashMap"],"since":null,"text":"properties: HashMap in format:\n- key: String - Name of the property, case insensitive\n- value: Anything - Value depends on the property"}],"returns":null,"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"properties","types":["HashMap"]}}],"examples":[{"text":"```sqf\n_ctrl ctrlSetProperty [\"x\", 0.015];\n```","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}"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlGetProperty"],"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"]}