{"name":"progressSetPosition","operator":null,"title":"progressSetPosition","type":"command","url":"https://community.bistudio.com/wiki/progressSetPosition","revid":369221,"updated":"2024-09-03T10:34:54Z","groups":["GUI Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Sets progress position of a progress bar.","syntaxes":[{"syntax":"control progressSetPosition progress","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":"progress bar control","types":["Control"],"since":null,"text":"control: Control - progress bar control"},{"name":"progress","type":"Number","optional":false,"default":null,"description":"0: no progress; 1: full progress","types":["Number"],"since":null,"text":"progress: Number - 0: no progress; 1: full progress"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"progress","types":["Number"]}}],"examples":[{"text":"```sqf\n_control progressSetPosition 0.5;\n```","code":["_control progressSetPosition 0.5;"]},{"text":"```sqf\nwith uiNamespace do {\n    bar = findDisplay 46 ctrlCreate [\"RscProgress\", -1];\n    bar ctrlSetPosition [0,0,1,0.01];\n    bar ctrlCommit 0;\n    bar progressSetPosition 0.75;\n};\n```","code":["with uiNamespace do {\n\tbar = findDisplay 46 ctrlCreate [\"RscProgress\", -1];\n\tbar ctrlSetPosition [0,0,1,0.01];\n\tbar ctrlCommit 0;\n\tbar progressSetPosition 0.75;\n};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["progressPosition","ctrlSetScrollValues","sliderSetPosition"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control","Introduced with Arma 2 version 1.00","Scripting Commands","Take On Helicopters: Scripting Commands"]}