bull_a 44 Posted July 30, 2013 Title ^^ Im having a few problems setting the position of a control dynamically in a script //BUL_UAV_terminal_buttonConnect.sqf hint "POSITION ""ON"""; //moves the frame to "on" position BUL_UAV_terminal_UAV_onFramePosY = (ctrlPosition ((findDisplay 1) displayCtrl 1012) select 1) * safeZoneY; BUL_UAV_terminal_UAV_selectFramePos = (ctrlPosition ((findDisplay 1) displayCtrl 1802)); //separates the position array //sets the frames new position BUL_UAV_terminal_UAV_onFramePos = ((findDisplay 1) displayCtrl 1802) ctrlSetPosition [(0.35351 * safezoneW + safezoneX), (0.312962 * safezoneH + safezoneY), (0.0206306 * safezoneW), (0.0198041 * safezoneH)]; i have selected the correct control however when the script launches the frame control does not seem to move. any suggestions? Thanks Bull Share this post Link to post Share on other sites
Larrow 2817 Posted July 30, 2013 Dont you have todo something like a ctrlCommit to get the change to show?? Share this post Link to post Share on other sites
bull_a 44 Posted July 30, 2013 ill have a check of that, never seen that before which maybe why im going wrong, Thanks Larrow Share this post Link to post Share on other sites