{"name":"ctrlSetPositionX","operator":null,"title":"ctrlSetPositionX","type":"command","url":"https://community.bistudio.com/wiki/ctrlSetPositionX","revid":309181,"updated":"2022-05-03T18:04:56Z","groups":["GUI Control - Positioning"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.92"}],"since":{"game":"arma3","name":"Arma 3","version":"1.92"},"arma3_since":"1.92","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sets horizontal position (x) of the 2D control. ctrlCommit is required to complete the operation.","syntaxes":[{"syntax":"control ctrlSetPositionX x","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":"2D control","types":["Control"],"since":null,"text":"control: Control - 2D control"},{"name":"x","type":"Number","optional":false,"default":null,"description":"horizontal position of the control","types":["Number"],"since":null,"text":"x: Number - horizontal position of the control"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"x","types":["Number"]}}],"examples":[{"text":"```sqf\n_ctrl ctrlSetPositionX 0.5;\n_ctrl ctrlCommit 1;\n```","code":["_ctrl ctrlSetPositionX 0.5;\n_ctrl ctrlCommit 1;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlSetPosition","ctrlSetPositionY","ctrlSetPositionW","ctrlSetPositionH"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Positioning","Introduced with Arma 3 version 1.92","Scripting Commands"]}