---
name: "isFlashlightOn"
type: command
status: ok
groups: ["Object Manipulation", "Weapons"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/isFlashlightOn
revid: 319047
updated: 2022-05-13T09:23:05Z
---

# isFlashlightOn

*Command · Object Manipulation, Weapons · Arma 3 v0.50*

## Description

Returns true if there is a linked and enabled flashlight on a given weapon.

## Syntax

```sqf
unit isFlashlightOn weapon
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
player isFlashlightOn (currentWeapon player);
```

## See also

[enableGunLights](../commands/enableGunLights.md)

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