{"name":"BIS_fnc_ctrlSetScale","title":"BIS fnc ctrlSetScale","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_ctrlSetScale","revid":349189,"updated":"2023-11-08T14:50:39Z","groups":["GUI"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Scale a control while maintaining its centering.","syntaxes":[{"syntax":"[control,scale,time] spawn BIS_fnc_ctrlSetScale","params":[{"name":"control","type":"Control","description":"the control which should be scaled","type_expr":"Control"},{"name":"scale","type":"Number","optional":true,"default":"1","description":"scale","type_expr":"Number","text":"scale: Number - (Optional, default 1) scale"},{"name":"time","type":"Number","optional":true,"default":"0","description":"commit time","type_expr":"Number","text":"time: Number - (Optional, default 0) commit time"}],"returns":{"type":"Array","type_expr":"Array","description":"final position"}}],"examples":[{"code":["private _finalPos = [_ctrl, 1.5, 3] spawn BIS_fnc_ctrlSetScale;"]}],"see_also":["ctrlCommitted","ctrlSetPosition","ctrlSetFade"]}