Arma 3 Scripting

Command in GUI Control - Positioning

ctrlSetPositionX

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

Description

Sets horizontal position (x) of the 2D control. ctrlCommit is required to complete the operation.

Syntax

control ctrlSetPositionX x

Parameters:

Returns: Nothing

Examples

Example 1

_ctrl ctrlSetPositionX 0.5;
_ctrl ctrlCommit 1;

See also

ctrlSetPosition · ctrlSetPositionY · ctrlSetPositionW · ctrlSetPositionH