{"name":"isFlashlightOn","title":"isFlashlightOn","type":"command","url":"https://community.bistudio.com/wiki/isFlashlightOn","revid":319047,"updated":"2022-05-13T09:23:05Z","groups":["Object Manipulation","Weapons"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","description":"Returns true if there is a linked and enabled flashlight on a given weapon.","syntaxes":[{"syntax":"unit isFlashlightOn weapon","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"weapon","type":"String","type_expr":"String"}],"returns":{"type":"Boolean","type_expr":"Boolean"},"form":"binary","left":{"text":"unit"},"right":{"text":"weapon"}}],"examples":[{"code":["player isFlashlightOn (currentWeapon player);"]}],"see_also":["enableGunLights"]}