DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Mich2001Helmet.c
См. документацию.
1class 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};
void AddAction(typename actionName)
Определения AdvancedCommunication.c:220
Определения ActionToggleNVG.c:2
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения Building.c:6
override void SetActions()
Определения Mich2001Helmet.c:3
void InitGlobalExclusionValues()
Определения Mich2001Helmet.c:25
override void OnDebugSpawn()
Определения Mich2001Helmet.c:13
Определения GreatHelm.c:2
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.