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)
Description
Details
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Operating System Version
- 2004
- Category
- Scripting
- Create group with flashlights on primary weapon
- Start mission
- Execute {_x enableGunLights "forceOn"} forEach (units group player); using Debug Console. Next "forceOff" and again "forceOn" several times.
or
- Start mission
- Execute player enableGunLights "forceOn" using Debug Console
Demonstration video:
Event Timeline
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.
Second issue: apparently command does not work for the player(s)
Intended, you can use action command for that
What happens if you use _unit enableGunLights "forceOn"; during the day and later the night falls. (Do they turn the flashlights ON automatically or you have to issue the command again at night for it to work?)
Issue seems solved indeed!
and if you use
{_x enableGunLights "forceOn"} forEach (units group player);
during the day it will just make the lights auto turn on when nightfalls.
That is great! Well done!
Now I am having the same old issue with
_helicopter setCollisionLight true;
It works if I run the command at night but not if run during the day. I mean the night will come and the aircraft still won't turn its collision lights ON. Perhaps we also need a "forceON" option for collision lights too.