API ReferenceGE Extensionsflowgraphnodesenvironment
Set Cloud by ID Node
- **File:** `flowgraph/nodes/environment/setCloud.lua`
Overview
- File:
flowgraph/nodes/environment/setCloud.lua - Name: Set Cloud by ID
- Category:
dynamic_instant - Icon:
simobject_scatter_sky
Sets various cloud parameters for a specific cloud object by ID.
Pin Schema
| Dir | Type | Name | Description |
|---|---|---|---|
| in | number | objectId | Defines the ID of cloud object to look for. |
| in | number | coverage | Defines how much of the sky is covered by this cloud. |
| in | number | exposure | Defines the brightness scale of the cloud. |
| in | number | windSpeed | Defines how fast the cloud texture will scroll. |
| in | number | height | Defines the height of cloud in the sky. |
Tags
environment, cloud
Data Properties
| Property | Default | Description |
|---|---|---|
restoreCloud | true | Whether to restore cloud settings on stop (currently commented out). |
Key Methods
| Method | Description |
|---|---|
setCloudParameters() | Applies all cloud parameters via core_environment API. |
workOnce() | Calls setCloudParameters(). |
work() | In repeat mode, calls setCloudParameters() every frame. |
API Calls
core_environment.setCloudCoverByID(objectId, coverage)core_environment.setCloudExposureByID(objectId, exposure)core_environment.setCloudWindByID(objectId, windSpeed)core_environment.setCloudHeightByID(objectId, height)
See Also
- Directional Gravity - Related reference
- Get Cloud by ID - Related reference
- Get Fog - Related reference
- FlowGraph Guide - Guide