Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
areadamagecomponentrandomhitzone.c
Go to the documentation of this file.
3 {
4  ref array<string> m_HitZones;
5 
7  {
8  m_HitZones = new array<string>;
9  }
10 
11  void SetHitZones( array<string> hitzones )
12  {
13  m_HitZones = hitzones;
14  }
15 
16  override protected AreaDamageComponentData GetAreaDamageComponentData(Object object)
17  {
19  data.Hitzone = m_HitZones.GetRandomElement();
20 
21  return data;
22  }
23 }
AreaDamageComponentRandomHitzone
Newer implementation equivalent of "AreaDamageRegular", hitzone selection only.
Definition: areadamagecomponentrandomhitzone.c:2
Object
Definition: objecttyped.c:1
AreaDamageComponent
ref array< typename > m_DamageableTypes void AreaDamageComponent(AreaDamageManager parent)
Definition: areadamagecomponent.c:16
array< string >
AreaDamageComponentData
Definition: areadamagecomponent.c:1
AreaDamageManager
void AreaDamageManager(EntityAI parent)
Definition: areadamagemanager.c:22