Jump to content
Sign in to follow this  
HaZZarD

Disable Night Vision ?

Recommended Posts

Hi all

Is there a way to disable the ability to use nigh vision ?

Going in to details my problem here is that I' am using this mod PG Services http://www.armaholic.com/page.php?id=21616 and they have the earpiece in the night vision slot so they have night vision available pressing N without having night vision googles ON.

I would like to keep their earpiece because it's very characteristic of this mod but at the same time I would like to turn off their ability to use night vision

well, any help is welcome : )

Share this post


Link to post
Share on other sites

Have the same question. Is it possible to disable night vision for items in night vision slot?

Share this post


Link to post
Share on other sites

Force it from init.

{
 if (side _x == resistance) then {
    
    _x unassignItem "NVGoggles_INDEP";
    _x removeItem "NVGoggles_INDEP";

}; } foreach allunits;

Share this post


Link to post
Share on other sites

 

Force it from init.

{
 if (side _x == resistance) then {
    
    _x unassignItem "NVGoggles_INDEP";
    _x removeItem "NVGoggles_INDEP";

}; } foreach allunits;

If I'm reading it right this won't work, the units don't have night vision goggles, but still have the ability because of how that item in the mod is set up. 

 

The only thing I can think of is over-riding the function whenever the button for night vision goggles is pressed (or calling the night vision goggles off action (https://community.bistudio.com/wiki/Arma_3_Actions#NVGogglesOff)), don't quite know the method though.

Share this post


Link to post
Share on other sites

Well i have check it out. the problem exist because the addon  autor uses class NVgogles to patch  in earpieces.

	class pmc_earpiece: NVGoggles {
		dlc = "PG_Services_Mod";
		author = "Pomigit";
		displayName = "Radio Earpiece (PG)";
		picture = "\PG_Services_PMC\icons\icon_H_earpiece.paa";
		model = "\PG_Services_PMC\earpiece.p3d";
		modelOptics = "-";
		descriptionShort = "Earpiece";
		descriptionUse = "";

		class ItemInfo {
			type = 616;
			hmdType = 0;
			uniformModel = "\PG_Services_PMC\earpiece.p3d";
			modelOff = "\PG_Services_PMC\earpiece.p3d";
			mass = 4;
		};
	};

The

player action ["nvGogglesOff", player];

is not working as well because this is relevant to the item night vision goggles

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×