DayZ
1.24
Loading...
Searching...
No Matches
MilitaryBelt.c
Go to the documentation of this file.
1
class
MilitaryBelt
:
Belt_Base
2
{
3
override
bool
CanPutInCargo
(
EntityAI
parent)
4
{
5
if
(!
super
.CanPutInCargo(parent))
6
return
false
;
7
8
return
IsEmpty
();
9
}
10
11
override
bool
CanReceiveAttachment
(
EntityAI
attachment
,
int
slotId
)
12
{
13
if
(!
super
.CanReceiveAttachment(
attachment
,
slotId
))
14
return
false
;
15
16
return
!GetInventory().IsInCargo();
17
}
18
19
20
//Debug menu Spawn Ground Special
21
override
void
OnDebugSpawn
()
22
{
23
EntityAI
entity
;
24
if
(
Class
.
CastTo
(
entity
,
this
))
25
{
26
entity
.GetInventory().CreateInInventory(
"NylonKnifeSheath"
);
27
entity
.GetInventory().CreateInInventory(
"PlateCarrierHolster"
);
28
entity
.GetInventory().CreateInInventory(
"Canteen"
);
29
}
30
}
31
};
IsEmpty
override bool IsEmpty()
Definition
FireplaceBase.c:2320
Belt_Base
Definition
LeatherBelt_ColorBase.c:2
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
EntityAI
Definition
Building.c:6
MilitaryBelt
Definition
MilitaryBelt.c:2
MilitaryBelt::CanReceiveAttachment
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
Definition
MilitaryBelt.c:11
MilitaryBelt::OnDebugSpawn
override void OnDebugSpawn()
Definition
MilitaryBelt.c:21
MilitaryBelt::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Definition
MilitaryBelt.c:3
Param3
Definition
EntityAI.c:95
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
scripts
4_World
Entities
ItemBase
Clothing
MilitaryBelt.c
Generated by
1.10.0