---
name: "enableIRLasers"
type: command
status: ok
groups: ["Weapons"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/enableIRLasers
revid: 310272
updated: 2022-05-05T13:11:21Z
---

# enableIRLasers

*Command · Weapons · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.50*

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

## Description

Allows the AI to use IR lasers. Units should be in "Combat" [behaviour](../commands/behaviour.md).

## Syntax

```sqf
unitOrGroup enableIRLasers value
```

**Parameters:**

- `unitOrGroup`: [Object](../topics/Object.md) or [Group](../topics/Group.md) - the unit or the group allowed to use IR lasers
- `value`: [Boolean](../topics/Boolean.md)

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

## Examples

### Example 1

```sqf
group player enableIRLasers true;
```

## See also

[isIRLaserOn](../commands/isIRLaserOn.md) · [enableGunLights](../commands/enableGunLights.md) · [isLightOn](../commands/isLightOn.md) · [isCollisionLightOn](../commands/isCollisionLightOn.md) · [setPilotLight](../commands/setPilotLight.md) · [setCollisionLight](../commands/setCollisionLight.md)

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