---
name: "setLightDayLight"
type: command
status: ok
groups: ["Lights"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setLightDayLight
revid: 319755
updated: 2022-05-13T09:24:49Z
---

# setLightDayLight

*Command · Lights · Arma 3 v0.50*

Locality: arguments **local** · effect **local**

## Description

Sets if light can be used during the day.

## Syntax

```sqf
light setLightDayLight bool
```

**Parameters:**

- `light`: [Object](../topics/Object.md)
- `bool`: [Boolean](../topics/Boolean.md)

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

## Examples

### Example 1

```sqf
myLight setLightDayLight true;
```

## See also

[setLightAmbient](../commands/setLightAmbient.md) · [setLightColor](../commands/setLightColor.md) · [lightAttachObject](../commands/lightAttachObject.md) · [lightDetachObject](../commands/lightDetachObject.md) · [setLightIntensity](../commands/setLightIntensity.md) · [setLightAttenuation](../commands/setLightAttenuation.md) · [setLightUseFlare](../commands/setLightUseFlare.md) · [setLightFlareSize](../commands/setLightFlareSize.md) · [setLightFlareMaxDistance](../commands/setLightFlareMaxDistance.md) · [setLightBrightness](../commands/setLightBrightness.md)

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