Page MenuHomeFeedback Tracker

enableGunLights issues
New, NormalPublic

Description

Stable ver. Arma 3 and no mods.
First issue: when executing a command for a group, not all members turn on their flashlights
Second issue: apparently command does not work for the player(s)

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
2004
Category
Scripting
Steps To Reproduce
  1. Create group with flashlights on primary weapon
  2. Start mission
  3. Execute {_x enableGunLights "forceOn"} forEach (units group player); using Debug Console. Next "forceOff" and again "forceOn" several times.

or

  1. Start mission
  2. Execute player enableGunLights "forceOn" using Debug Console
Additional Information

Demonstration video:

Event Timeline

TRAGER created this task.Nov 3 2020, 7:16 AM

There is an issue with this command - that might come from an unscheduled/pause issue:

if (isNil "switchLights") then { switchLights = true };
[] spawn { sleep 0.1; joe enableGunLights (["forceOff", "forceOn"] select switchLights); // works with a timer, 100%
joe enableGunLights (["forceOff", "forceOn"] select switchLights); // doesn't work well 
switchLights = !switchLights;

↑ this applied to a full AI group whose leader is named joe.