DayZ 1.24
Loading...
Searching...
No Matches
Mosin9130_Base Class Reference

Private Member Functions

override RecoilBase SpawnRecoilObject ()
 
override void OnDebugSpawn ()
 
override RecoilBase SpawnRecoilObject ()
 

Detailed Description

Definition at line 21 of file Mosin9130.c.

Member Function Documentation

◆ OnDebugSpawn()

override void Mosin9130_Base::OnDebugSpawn ( )
inlineprivate

Definition at line 30 of file Mosin9130.c.

31 {
32 super.OnDebugSpawn();
33 GameInventory inventory = GetInventory();
34
35 inventory.CreateInInventory("PUScopeOptic");
36 inventory.CreateInInventory("Mosin_Compensator");
37
39 if (Class.CastTo(entity, this))
40 entity.SpawnEntityOnGroundPos("Ammo_762x54", entity.GetPosition());
41 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
script counterpart to engine's class Inventory
Definition Inventory.c:79
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.

References Class::CastTo().

◆ SpawnRecoilObject() [1/2]

override RecoilBase Mosin9130_Base::SpawnRecoilObject ( )
inlineprivate

Definition at line 23 of file Mosin9130.c.

24 {
25 return new MosinRecoil(this);
26 }

◆ SpawnRecoilObject() [2/2]

override RecoilBase Mosin9130_Base::SpawnRecoilObject ( )
inlineprivate

Definition at line 46 of file Mosin9130.c.

47 {
48 return new MosinSawedOffRecoil(this);
49 }

The documentation for this class was generated from the following file: