Script:worldfade: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 10: Line 10:
g number*[0,1] Green component of the color to fade out to
g number*[0,1] Green component of the color to fade out to
b number*[0,1] Blue component of the color to fade out to
b number*[0,1] Blue component of the color to fade out to
|intro=This is a global effect and does not depend on the used camera. Cineatic borders set using {{Command|cinemascope}} will not fade but are drawn in front of the chosen color.
|intro=This is a global effect and does not depend on the used camera. The requested color covers the world and [[Gameplay#HUD|HUD]] but cineatic borders set using {{Command|cinemascope}} will not fade and remain black.
}}
}}

Latest revision as of 11:59, 19 June 2022

The worldfade script command is used to fade to/from black or another color. This is a global effect and does not depend on the used camera. The requested color covers the world and HUD but cineatic borders set using cinemascope will not fade and remain black.

Usage

worldfade out <duration*> <r*> <g*> <b*>
worldfade in <duration*>

Context: Ignored

Parameters:

ParameterTypeDescription
duration number or variable Fade duration in milliseconds
r number or variable [0,1] Red component of the color to fade out to
g number or variable [0,1] Green component of the color to fade out to
b number or variable [0,1] Blue component of the color to fade out to