---
name: "isIRLaserOn"
type: command
status: ok
groups: ["Lights"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isIRLaserOn
revid: 310267
updated: 2022-05-05T13:11:19Z
---

# isIRLaserOn

*Command · Lights · Arma 3 v0.50*

## Description

Returns [true](../commands/true.md) if there is a linked and enabled IR on the given weapon.

## Syntax

```sqf
unit isIRLaserOn weapon
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)
- `weapon`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
player isIRLaserOn currentWeapon player;
```

## See also

[enableIRLasers](../commands/enableIRLasers.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 — isIRLaserOn](https://community.bistudio.com/wiki/isIRLaserOn) (revision 310267).</sub>
