3 bool m_workingRangefinder;
7 Rangefinder rangefinder = Rangefinder.Cast(item);
10 m_Text =
"#use_range_finder";
21 if(
Class.CastTo(optic, item) && !optic.IsInOptics() && !player.IsNVGLowered() )
30 player.SetIronsights(
false);
31 player.SetHandheldOpticsInUse(
true);
32 player.SetOptics(
true);
34 optic.HideSelection(
"hide");
35 if ( NVGoggles.Cast(optic) && optic.ConfigIsExisting(
"simpleHiddenSelections") )
37 optic.SetSimpleHiddenSelectionState(0,
false);
40 if ( optic.HasEnergyManager() )
46 rf.SetPlayer( player );
48 rf.GetCompEM().SwitchOn();
54 optic.ShowSelection(
"hide");
55 if ( NVGoggles.Cast(optic) && optic.ConfigIsExisting(
"simpleHiddenSelections") )
57 optic.SetSimpleHiddenSelectionState(0,
true);
59 player.SetHandheldOpticsInUse(
false);
61 if ( optic.HasEnergyManager() )
69 rf.GetCompEM().SwitchOff();