13 entity.GetInventory().CreateInInventory(
"PSO1Optic" );
14 SpawnAttachedMagazine(
"Mag_Vikhr_30Rnd");
24 if (optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || PSO6Optic.Cast(optic) || KazuarOptic.Cast(optic))
26 return super.CanEnterIronsights();
35 if (optic && PSO1Optic.Cast(optic) || PSO11Optic.Cast(optic) || PSO6Optic.Cast(optic) || KazuarOptic.Cast(optic))
37 return super.CanEnterIronsights();
Super root of all classes in Enforce script.
override void OnDebugSpawn()
override RecoilBase SpawnRecoilObject()
override bool CanEnterIronsights()
override bool CanEnterIronsights()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.