Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
izh18shotgun.c
Go to the documentation of this file.
1
6{
8 {
9 }
10
12 {
13 return new Izh18ShotgunRecoil(this);
14 }
15
16 //Debug menu Spawn Ground Special
17 override void OnDebugSpawn()
18 {
19 SpawnAmmo("Ammo_12gaPellets",SAMF_DEFAULT);
20
21 EntityAI entity;
22 if ( Class.CastTo(entity, this) )
23 {
24 entity.SpawnEntityOnGroundPos("Ammo_12gaPellets", entity.GetPosition());
25 }
26 }
27};
Super root of all classes in Enforce script.
Definition enscript.c:11
override void OnDebugSpawn()
override RecoilBase SpawnRecoilObject()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.