Arma 3 Scripting

Function in Systems

BIS_fnc_scaleAndTranslate

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

Description

Translates, scales (with pivot) and fades a picture control over time.

Syntax

[picture, scaleFactor, pivot, translation, durationOrSpeed, isDuration, fade] call BIS_fnc_scaleAndTranslate

Parameters:

Returns: Number - duration of the animation; useful for determining how much sleep time is needed between animations

Examples

Example 1

[_controlFront, 0.8, "topLeft"] call BIS_fnc_scaleAndTranslate;
private _t = [_controlFront, 1, "bottomRight", [0.1, 0.1], 0.5, false] call BIS_fnc_scaleAndTranslate;
sleep (_t * 2);
[_controlFront, 0.8, "topRight", [0.5, 0.3]] call BIS_fnc_scaleAndTranslate;

See also

ctrlSetPosition · ctrlSetFade · ctrlCommit