Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
remington12.c
Go to the documentation of this file.
1class R12_Base : ChamberFirst_InnerMagazine_SemiAutomatic_Base
2{
4 {
5 return new R12Recoil(this);
6 }
7
8 //Debug menu Spawn Ground Special
9 override void OnDebugSpawn()
10 {
11 //super.OnDebugSpawn();
12 SpawnAmmo("Ammo_12gaPellets",SAMF_DEFAULT);
13 GameInventory inventory = GetInventory();
14 inventory.CreateInInventory( "UniversalLight" );
15 inventory.CreateInInventory( "Battery9V" );
16 inventory.CreateInInventory( "ReflexOptic" );
17 inventory.CreateInInventory( "Battery9V" );
18
19 EntityAI entity;
20 if ( Class.CastTo(entity, this) )
21 {
22 entity.SpawnEntityOnGroundPos("Ammo_12gaPellets", entity.GetPosition());
23 }
24 }
25}
26class R12 : R12_Base
27{
28};
Super root of all classes in Enforce script.
Definition enscript.c:11
script counterpart to engine's class Inventory
Definition inventory.c:81
EntityAI CreateInInventory(string type)
Definition inventory.c:876
override void OnDebugSpawn()
Definition remington12.c:9
override RecoilBase SpawnRecoilObject()
Definition remington12.c:3
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.