Arma 3 Scripting

Command in GUI Control - Positioning

ctrlSetScale

Also available as Markdown and JSON, or read the original wiki page.

Description

Sets scale of a control. Top left corner remains same. This command requires ctrlCommit.

Syntax

control ctrlSetScale scale

Parameters:

Returns: Nothing

Examples

Example 1

_control ctrlSetScale 0.5;// Makes the control 50% smaller
_control ctrlCommit 0;

See also

ctrlScale · ctrlModelScale · ctrlSetModelScale