Arma 3 Scripting

Command in Object Manipulation, Weapons

isFlashlightOn

Also available as Markdown and JSON, or read the original wiki page.

Description

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

Syntax

unit isFlashlightOn weapon

Parameters:

Returns: Boolean

Examples

Example 1

player isFlashlightOn (currentWeapon player);

See also

enableGunLights