cutFadeOut: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Undo revision 250261 by R3vo (talk))
Tag: Undo
(fixed categories)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma1
|game1= arma1


|1.05
|version1= 1.05
 
|game2= arma2
 
|version2= 1.00
 
|game3= arma2oa
 
|version3= 1.55
 
|game4= tkoh
 
|version4= 1.00
 
|game5= arma3
 
|version5= 1.00


|gr1= GUI Control
|gr1= GUI Control


| 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]].
|descr= 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]].
{{Feature|arma3|For greater efficiency and ease of moddability, it is recommended to use named layers.}}
{{Feature|arma3|For greater efficiency and ease of moddability, it is recommended to use named layers.}}


| layer '''cutFadeOut''' duration
|s1= layer '''cutFadeOut''' duration


|p1= layer: [[Number]]
|p1= layer: [[Number]]
Line 16: Line 32:
|p2= duration: [[Number]]
|p2= duration: [[Number]]


| [[Nothing]]
|r1= [[Nothing]]


|s2= layerName '''cutFadeOut''' duration {{Since|arma3|1.57.134673|y}}
|s2= layerName '''cutFadeOut''' duration {{Since|arma3|1.57.134673|y}}
Line 32: Line 48:
|seealso= [[allCutLayers]], [[cutText]], [[cutRsc]], [[cutObj]], [[allActiveTitleEffects]]
|seealso= [[allCutLayers]], [[cutText]], [[cutRsc]], [[cutObj]], [[allActiveTitleEffects]]
}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}


<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->

Revision as of 11:18, 1 March 2021

Hover & click on the images for description

Description

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.
Arma 3
For greater efficiency and ease of moddability, it is recommended to use named layers.
Groups:
GUI Control

Syntax

Syntax:
layer cutFadeOut duration
Parameters:
layer: Number
duration: Number
Return Value:
Nothing

Alternative Syntax

Syntax:
layerName cutFadeOut duration Template:Since
Parameters:
layerName: String - effect layer name. Layer names are CaSe SeNsItIvE
duration: Number - fade out time
Return Value:
Number - number of the corresponding layer

Examples

Example 1:
0 cutFadeOut 2;
Example 2:
_layer = "layer1" cutFadeOut 2;

Additional Information

See also:
allCutLayerscutTextcutRsccutObjallActiveTitleEffects

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Posted on July 9, 2016 - 11:30 (UTC)
Krzmbrzl00
Arma 3 logo black.png1.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