14 entity.SpawnEntityOnGroundPos(
"Mag_Aug_30Rnd", entity.GetPosition());
57 SpawnAttachedMagazine(
"Mag_Aug_30Rnd");
72 if ( !FindAttachmentBySlotName(
"weaponOpticsAug") )
74 GetInventory().CreateAttachment(
"AugOptic");
81 SpawnAttachedMagazine(
"Mag_Aug_30Rnd");
override void AssembleGun()
AugOptic CanEnterIronsights
override int GetWeaponSpecificCommand(int weaponAction, int subCommand)
override RecoilBase SpawnRecoilObject()
override void OnDebugSpawn()
override bool CanPutAsAttachment(EntityAI parent)
Super root of all classes in Enforce script.
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
script counterpart to engine's class Inventory
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.