mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #6654 from acemod/noLaserLight
Common - disable light from green weap lasers
This commit is contained in:
commit
10468c6156
@ -30,7 +30,7 @@ if (_lightSource isKindOf "CAManBase") then {
|
||||
|
||||
private _flashlight = (_lightSource weaponAccessories _weapon) select 1;
|
||||
|
||||
if (getNumber (configFile >> "CfgWeapons" >> _flashlight >> "ACE_laserpointer") == 1) exitWith {_lightLevel = 0};
|
||||
if (getNumber (configFile >> "CfgWeapons" >> _flashlight >> "ACE_laserpointer") > 0) exitWith {}; // Red = 1, Green = 2
|
||||
|
||||
private _properties = [[_flashlight], FUNC(getLightPropertiesWeapon), uiNamespace, format [QEGVAR(cache,%1_%2), QUOTE(DFUNC(getLightPropertiesWeapon)), _flashlight], 1E11] call FUNC(cachedCall);
|
||||
//_properties = [_flashlight] call FUNC(getLightPropertiesWeapon);
|
||||
|
Loading…
Reference in New Issue
Block a user