Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
m14.c
Go to the documentation of this file.
1class M14_Base : RifleBoltLock_Base
2{
3 override RecoilBase SpawnRecoilObject()
4 {
5 return new M14Recoil(this);
6 }
7
8 override void OnDebugSpawn()
9 {
10 GameInventory inventory = GetInventory();
11
12 inventory.CreateInInventory( "ACOGOptic_6x" );
13 inventory.CreateInInventory( "ImprovisedSuppressor" );
14 inventory.CreateInInventory( "Battery9V" );
15
16 SpawnAttachedMagazine("Mag_M14_20Rnd");
17 }
18};
script counterpart to engine's class Inventory
Definition inventory.c:79
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
Definition inventory.c:874
Definition m14.c:2