Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
mich2001helmet.c
Go to the documentation of this file.
1 class Mich2001Helmet extends HelmetBase
2 {
3  override void SetActions()
4  {
5  super.SetActions();
6 
7  AddAction(ActionTurnOnHelmetFlashlight); //use default light actions instead?
10  }
11 
12  //Debug menu Spawn Ground Special
13  override void OnDebugSpawn()
14  {
15  EntityAI entity;
16  if ( Class.CastTo(entity, this) )
17  {
18  entity.GetInventory().CreateInInventory( "NVGoggles" );
19  entity.GetInventory().CreateInInventory( "UniversalLight" );
20  entity.GetInventory().CreateInInventory( "Battery9V" );
21  entity.GetInventory().CreateInInventory( "Battery9V" );
22  }
23  }
24 
25  override protected void InitGlobalExclusionValues()
26  {
27  super.InitGlobalExclusionValues();
28 
29  AddSingleExclusionValueGlobal(EAttExclusions.EXCLUSION_HEADSTRAP_0);
30  }
31 };
OnDebugSpawn
class Hatchback_02_Blue extends Hatchback_02 OnDebugSpawn
Definition: hatchback_02.c:404
ActionTurnOnHelmetFlashlight
Definition: actionturnonhelmetflashlight.c:1
AddAction
void AddAction(typename actionName)
Definition: advancedcommunication.c:86
SetActions
void SetActions()
Definition: advancedcommunication.c:79
HelmetBase
Definition: greathelm.c:1
ActionTurnOffHelmetFlashlight
Definition: actionturnoffhelmetflashlight.c:1
Class
Super root of all classes in Enforce script.
Definition: enscript.c:10
ActionToggleNVG
Definition: actiontogglenvg.c:1
EntityAI
Definition: building.c:5