DayZ 1.24
Loading...
Searching...
No Matches
AKS74U.c
Go to the documentation of this file.
2{
4 {
5 return new Aks74uRecoil(this);
6 }
7
8 //Debug menu Spawn Ground Special
9 override void OnDebugSpawn()
10 {
12 if (Class.CastTo(entity, this))
13 {
14 entity.GetInventory().CreateInInventory("AKS74U_Bttstck");
15 entity.GetInventory().CreateInInventory("AK_Suppressor");
16 SpawnAttachedMagazine("Mag_AK74_30Rnd");
17 }
18 }
19};
Definition AKS74U.c:2
override void OnDebugSpawn()
Definition AKS74U.c:9
override RecoilBase SpawnRecoilObject()
Definition AKS74U.c:3
Super root of all classes in Enforce script.
Definition EnScript.c:11
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.