{"name":"BIS_fnc_ctrlSetScale","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Scale a control while maintaining its centering.","syntaxes":[{"syntax":"[control,scale,time] spawn BIS_fnc_ctrlSetScale","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":"the control which should be scaled","types":["Control"],"since":null,"text":"control: Control - the control which should be scaled"},{"name":"scale","type":"Number","optional":true,"default":"1","description":"scale","types":["Number"],"since":null,"text":"scale: Number - (Optional, default 1) scale"},{"name":"time","type":"Number","optional":true,"default":"0","description":"commit time","types":["Number"],"since":null,"text":"time: Number - (Optional, default 0) commit time"}],"returns":{"type":"Array","types":["Array"],"description":"final position","text":"Array - final position"}}],"examples":[{"text":"```sqf\nprivate _finalPos = [_ctrl, 1.5, 3] spawn BIS_fnc_ctrlSetScale;\n```","code":["private _finalPos = [_ctrl, 1.5, 3] spawn BIS_fnc_ctrlSetScale;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlCommitted","ctrlSetPosition","ctrlSetFade"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: GUI","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}