29 {
30 player.SetIronsights(false);
31 player.SetHandheldOpticsInUse(true);
32 player.SetOptics(true);
35 if ( NVGoggles.Cast(optic) && optic.ConfigIsExisting("simpleHiddenSelections") )
36 {
37 optic.SetSimpleHiddenSelectionState(0,false);
38 }
39
40 if ( optic.HasEnergyManager() )
41 {
42 PoweredOptic_Base opticBase = PoweredOptic_Base.Cast(optic);
43 if (opticBase)
44 {
45 opticBase.SetPlayer(player);
46
48 opticBase.StartWorkServer();
49 }
50 }
51 }
proto native bool EnterOptics()
switches to optics mode if possible
override void HideSelection(string selection_name)
proto native CGame GetGame()