• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /General
  • /A3G-103
Back
3

isIRLaserOn and isFlashlightOn return false for optics with lasers

Feature Request
3

State

Need more info
Issue key
A3G-103
Access
Public
Space
Arma 3
Project
General
Creator
vestarr
Created
Oct 1, 2026
Views
135
Issue Type
Bug/Error
Section
Game Version
2.22 (Current Stable)
Was this also present in the previous version?
Yes, it was already present
Severity
This is seriously disrupting my gameplay
Section
Operating System
Windows
Windows
Windows Version
Windows 11
Description

As described in the title, the isIRLaserOn and isFlashlightOn scripting commands don't support the lasers configured in optics slots, which have been added in v2.12, always returning false.

This is especially problematic in BettIR, which relies on these values to determine if the lasers should be re-enabled after switching the device variants (which is why I tagged the severity this way, although it's probably not as important for other players).

Reproduction steps:

  1. Equip an optic with a laser, e.g. MARS or InSight ISM IR from CUP mod (the latter also has an IR flood light)

  2. Enable the laser

  3. Run player isIRLaserOn (currentWeapon player) in the console, and similarly run the same code with isFlashlightOn instead

  4. observe that both commands return false

Expected result: true should be returned if a laser is enabled in either of the two slots

Reactions

Activity

    about 2 months ago
  • vestarr
    created issueabout 2 months ago
  • about 1 month ago
  • bis_fnc_kk
    Moderator
    commented
    about 1 month ago
    bis_fnc_kk
    Moderator
    commented
    about 1 month ago

    Can you equip laser pointer and optics with laser together? If so how would you expect IsLaserOn to tell you which one is on?

  • bis_fnc_kk
    Moderator
    commented
    about 1 month ago
    bis_fnc_kk
    Moderator
    commented
    about 1 month ago

    Also what other DLCs have those modded optics?

  • bis_fnc_kk
    changed state to
    NEED MORE INFO
    about 1 month ago
  • about 1 month ago
  • vestarrreplied to a comment
    about 1 month ago
    vestarrreplied to a comment
    about 1 month ago

    If you equip both a laser pointer and optics that have a laser, in the current version of ArmA 3 the laser pointer takes priority and L activation keybind responds only to it (and the isIRLaserOn scripting command). When you take the laser off and use only the optic, the optic laser responds to the L activation keybind, but the isIRLaserOn scripting command doesn't.
    So, I would expect that isIRLaserOn resolves to true when IR laser is on in either of the two slots: in the optic slot if the side slot is empty, and in the side slot if it's got a laser device in it.

  • vestarrreplied to a comment
    about 1 month ago
    vestarrreplied to a comment
    about 1 month ago

    I believe there isn't any optics in the base game or the DLCs that utilise this feature, I only found such optics in the CUP mod so far (and my BettIR Attachments mod extends that also)

You are not signed in. Please sign in to see more details and to reply.

State

Need more info
Issue key
A3G-103
Access
Public
Space
Arma 3
Project
General
Creator
vestarr
Created
Oct 1, 2026
Views
135