Skip to content

Enable Disable Gun Lights

Hypoxic edited this page Aug 24, 2025 · 6 revisions

Enable/Disable Gun Lights

Module Description

Changes the flashlight On/Off state of the unit's group. Affects player units as well.

Module Properties

See Module Properties

isGlobal = 0;
isTriggerActivated = 1;
isDisposable = 1;
is3DEN = 1;

Module Arguments

State

  • Description:
    The state of the gun lights. Auto allows the AI to decide for themselves (default behaviour).
  • Default:
    Auto

Add Attachment

  • Description:
    This will force removal of the primary weapon's pointer device and add the provided attachment in Force Add Flashlight.
  • Default:
    False

Force Add Flashlight

  • Description:
    CfgWeapons classname of the flashlight to add.
  • Default:
    acc_flashlight

Object Synchronization

Accepted Objects

  • Trigger (Optional)
  • Unit(s)

Trigger Effects

Activated

  • Activation of the synced trigger will activate the module causing all of the group's lights to change state.

Deactivated

  • None

Clone this wiki locally