DayZ
1.24
Loading...
Searching...
No Matches
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?
8
AddAction
(
ActionTurnOffHelmetFlashlight
);
9
AddAction
(
ActionToggleNVG
);
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
};
AddAction
void AddAction(typename actionName)
Definition
AdvancedCommunication.c:212
ActionToggleNVG
Definition
ActionToggleNVG.c:2
ActionTurnOffHelmetFlashlight
Definition
ActionTurnOffHelmetFlashlight.c:2
ActionTurnOnHelmetFlashlight
Definition
ActionTurnOnHelmetFlashlight.c:2
Class
Super root of all classes in Enforce script.
Definition
EnScript.c:11
EntityAI
Definition
Building.c:6
HelmetBase
Definition
GreatHelm.c:2
HelmetBase::SetActions
override void SetActions()
Definition
Mich2001Helmet.c:3
HelmetBase::InitGlobalExclusionValues
void InitGlobalExclusionValues()
Definition
Mich2001Helmet.c:25
HelmetBase::OnDebugSpawn
override void OnDebugSpawn()
Definition
Mich2001Helmet.c:13
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
HelmetBase
Mich2001Helmet.c
Generated by
1.10.0