DayZ 1.24
Loading...
Searching...
No Matches
Winchester70_Base Class Reference
Inheritance diagram for Winchester70_Base:
[legend]
Collaboration diagram for Winchester70_Base:
[legend]

Private Member Functions

override RecoilBase SpawnRecoilObject ()
 
override void OnDebugSpawn ()
 

Detailed Description

Definition at line 1 of file Winchester70.c.

Member Function Documentation

◆ OnDebugSpawn()

override void Winchester70_Base::OnDebugSpawn ( )
inlineprivate

Definition at line 10 of file Winchester70.c.

11 {
12 super.OnDebugSpawn();
14 if (Class.CastTo(entity, this))
15 {
16 entity.GetInventory().CreateInInventory("HuntingOptic");
17 entity.SpawnEntityOnGroundPos("Ammo_308Win", entity.GetPosition());
18 }
19 }
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.

References Class::CastTo().

◆ SpawnRecoilObject()

override RecoilBase Winchester70_Base::SpawnRecoilObject ( )
inlineprivate

Definition at line 3 of file Winchester70.c.

4 {
5 return new Winchester70Recoil(this);
6 }

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