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

Private Member Functions

override bool CanPutInCargo (EntityAI parent)
 
override bool CanReceiveAttachment (EntityAI attachment, int slotId)
 
override void OnDebugSpawn ()
 

Detailed Description

Definition at line 1 of file MilitaryBelt.c.

Member Function Documentation

◆ CanPutInCargo()

override bool MilitaryBelt::CanPutInCargo ( EntityAI parent)
inlineprivate

Definition at line 3 of file MilitaryBelt.c.

4 {
5 if (!super.CanPutInCargo(parent))
6 return false;
7
8 return IsEmpty();
9 }
override bool IsEmpty()

References IsEmpty().

◆ CanReceiveAttachment()

override bool MilitaryBelt::CanReceiveAttachment ( EntityAI attachment,
int slotId )
inlineprivate

Definition at line 11 of file MilitaryBelt.c.

12 {
13 if (!super.CanReceiveAttachment(attachment, slotId))
14 return false;
15
16 return !GetInventory().IsInCargo();
17 }

◆ OnDebugSpawn()

override void MilitaryBelt::OnDebugSpawn ( )
inlineprivate

Definition at line 21 of file MilitaryBelt.c.

22 {
24 if (Class.CastTo(entity, this))
25 {
26 entity.GetInventory().CreateInInventory("NylonKnifeSheath");
27 entity.GetInventory().CreateInInventory("PlateCarrierHolster");
28 entity.GetInventory().CreateInInventory("Canteen");
29 }
30 }
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().


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