---
name: "setLightnings"
type: command
status: ok
groups: ["Environment"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setLightnings
revid: 349843
updated: 2023-11-20T22:10:39Z
---

# setLightnings

*Command · Environment · Arma 3 v0.50*

## Description

Changes the lightnings value smoothly during the given time (in seconds). A time of zero means there will be an immediate change.

**NOTE**: This command will have no effect (even though the value of [lightnings](../commands/lightnings.md) changes) unless `Manual Override` option is selected in the editor in the Intel, which is normally off.

## Syntax

```sqf
time setLightnings value
```

**Parameters:**

- `time`: [Number](../topics/Number.md)
- `value`: [Number](../topics/Number.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
1800 setLightnings 0.7;
```

## See also

[lightnings](../commands/lightnings.md) · [overcast](../commands/overcast.md) · [setWaves](../commands/setWaves.md)

<sub>Source: [BI Community Wiki — setLightnings](https://community.bistudio.com/wiki/setLightnings) (revision 349843).</sub>
