Arma 3 Scripting

cutFadeOut

  • Arma 3 v0.50
  • First in Armed Assault v1.05

Command · Markdown · JSON · original wiki page

Description

Terminates the effect in the given layer by fading it out according to the given duration. If named layer is used and it doesn't exist, it will be allocated. For title layer see titleFadeOut.

Note

Arma 3: For greater efficiency and ease of moddability, it is recommended to use named layers.

Syntax

Syntax 1

layer cutFadeOut duration

Parameters:

Returns: Nothing

Syntax 2

since arma3 1.58

layerName cutFadeOut duration

Parameters:

Returns: Number - number of the corresponding layer

Examples

Example 1

0 cutFadeOut 2;

Example 2

private _layer = "layer1" cutFadeOut 2;

See also

allCutLayers · cutText · cutRsc · cutObj · allActiveTitleEffects · activeTitleEffectParams

Community notes

Krzmbrzl00

Arma 3 v1.60 The actual fadeOut-duration can be dependent on the duration for the fadeIn (e.g. specified by cutText). If the fadeIn-duration is set to a value less than 1 the fadeOut-duration will be the given number multiplied by the fadeIn-duration.

"test" cutText ["", "BLACK", 0.5, true]; // fadein is < 0
"test" cutFadeOut 2; // The actual fadeout-time is 2 * 0.5 = 1