DayZ
1.27
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
CivilianBelt.c
См. документацию.
1
class
CivilianBelt
:
Belt_Base
2
{
3
override
bool
CanPutInCargo
(
EntityAI
parent )
4
{
5
if
( !super.CanPutInCargo( parent ) )
6
{
7
return
false
;
8
}
9
10
return
IsEmpty
();
11
}
12
13
override
bool
CanReceiveAttachment
(
EntityAI
attachment,
int
slotId )
14
{
15
if
( !super.CanReceiveAttachment( attachment, slotId ) )
16
{
17
return
false
;
18
}
19
20
return
!GetInventory().IsInCargo();
21
}
22
23
24
//Debug menu Spawn Ground Special
25
override
void
OnDebugSpawn
()
26
{
27
EntityAI
entity;
28
if
(
Class
.
CastTo
(entity,
this
) )
29
{
30
entity.GetInventory().CreateInInventory(
"NylonKnifeSheath"
);
31
entity.GetInventory().CreateInInventory(
"PlateCarrierHolster"
);
32
entity.GetInventory().CreateInInventory(
"Canteen"
);
33
}
34
}
35
};
IsEmpty
override bool IsEmpty()
Определения
FireplaceBase.c:2465
Belt_Base
Определения
LeatherBelt_ColorBase.c:2
CivilianBelt::OnDebugSpawn
override void OnDebugSpawn()
Определения
CivilianBelt.c:25
CivilianBelt::CanPutInCargo
override bool CanPutInCargo(EntityAI parent)
Определения
CivilianBelt.c:3
CivilianBelt::CanReceiveAttachment
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
Определения
CivilianBelt.c:13
CivilianBelt
Определения
CivilianBelt.c:2
Class
Super root of all classes in Enforce script.
Определения
EnScript.c:11
EntityAI
Определения
Building.c:6
Class::CastTo
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
Ishodniki
scripts
4_World
Entities
ItemBase
Clothing
CivilianBelt.c
Создано системой
1.13.2