SetCloudsAlpha
DocsSetCloudsAlpha(opacity)Description
Allows modification of the cloud opacity. It can also be used in other contexts, such as when the player is in a switch state <code>IS_PLAYER_SWITCH_IN_PROGRESS</code>.
Parameters
| Name | Type | Description |
|---|---|---|
opacity | float | The opacity value to set for clouds. |
Returns
voidThis native does not return a value.
Examples
Official
-- Check if the player is in a Switch "state"
if IsPlayerSwitchInProgress() then
-- If the player is in a Switch state, set the clouds opacity to 1.0
SetCloudsAlpha(1.0)
end