Skip to content

mission_task_clouds

Source: base/tealdef/mission/tasks/utility/mission_task_clouds.d.tl

Notes

Task that fades the cloud coverage to a target value.

MissionTaskClouds

record global base/tealdef/mission/tasks/utility/mission_task_clouds.d.tl:3

global record MissionTaskClouds is MissionInterface.TaskScript<MissionTaskClouds.State, MissionTaskClouds.Params>

Load: local clouds = ug_require "::/mission/tasks/utility/clouds.tl"

Notes

Task (clouds) that changes the cloud coverage linearly from its current value to coverage over seconds of GUI time.

MissionTaskClouds.Params

record base/tealdef/mission/tasks/utility/mission_task_clouds.d.tl:4

record Params

Notes

Params of the task.

Used in the base game: 1 time in 1 file

base/content/mission/mission/tasks/utility/clouds.tl:2

local type P = MissionTaskClouds.Params

Fields

Name Type Description
seconds integer Duration in GUI seconds.
coverage number Target cloud coverage.

MissionTaskClouds.State

record base/tealdef/mission/tasks/utility/mission_task_clouds.d.tl:8

record State

Notes

State of the task.

Used in the base game: 1 time in 1 file

base/content/mission/mission/tasks/utility/clouds.tl:1

local type S = MissionTaskClouds.State

Fields

Name Type Description
initialTime number GUI time (seconds) at which the fade started.
endTime number GUI time (seconds) at which the fade ends and the task completes.
initialCoverage number Cloud coverage at the start, read from the GUI.