DayZ 1.24
Loading...
Searching...
No Matches
CivilianBelt.c
Go to the documentation of this file.
2{
3 override bool CanPutInCargo(EntityAI parent)
4 {
5 if (!super.CanPutInCargo(parent))
6 return false;
7
8 return IsEmpty();
9 }
10
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 {
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};
override bool IsEmpty()
override void OnDebugSpawn()
override bool CanPutInCargo(EntityAI parent)
Definition CivilianBelt.c:3
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
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.