Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
hippack_colorbase.c
Go to the documentation of this file.
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( "Canteen" );
31  }
32  }
33 };
HipPack_Black
Definition: hippack_colorbase.c:34
HipPack_Party
Definition: hippack_colorbase.c:37
HipPack_Green
Definition: hippack_colorbase.c:35
Belt_Base
Definition: leatherbelt_colorbase.c:1
IsEmpty
override bool IsEmpty()
Definition: fireplacebase.c:2454
HipPack_ColorBase
Definition: hippack_colorbase.c:1
HipPack_Medical
Definition: hippack_colorbase.c:36
Class
Super root of all classes in Enforce script.
Definition: enscript.c:10
EntityAI
Definition: building.c:5