Skip to reading
GDScript Programming & Godot

SetSnowAccumulation()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Set Snow Accumulation

Set or animate accumulated snow on the scene, with duration/pace and optional waiting.

Source table from SetSnowAccumulation(), page 159
Option key / fieldMeaning and inputDefault
Scene (empty = current) sceneIdChoose a scene ID. May be blank.Blank
Accumulation Amount (0 to 1) amountTarget accumulated snow amount from 0 to 1. Range: 0.0 to 1.0.1.0
Transition Duration (seconds, 0 = authored pace) durationTime in seconds for this action. Read its timing note before assuming it waits. Range: 0.0 to 86400.0.0.0
Amount Per Second (used only when duration = 0) paceSnow accumulation/melt pace; use the duration route for a simple timed test. Range: 0.0 to 100.0.0.0
Wait Until Accumulation Finishes waitForCompletionWait for the snow animation to complete before continuing.true

Timing. Waits when Wait for Completion is on.

Code example
await SetSnowAccumulation({"sceneId": "lab", "amount": 1.0, "duration": 1})

In use. Build snow over a short time while a reveal runs. Use Wait for Completion only when subsequent instructions should be delayed. The target room must have snow-capable surfaces and appropriate visual settings.

Page 159 of 378Permalink
Go to page