DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnHealthLevelChanged()

override void Construction::OnHealthLevelChanged ( int oldLevel,
int newLevel,
string zone )
inlineprotected

См. определение в файле Construction.c строка 116

117 {
118 super.OnHealthLevelChanged(oldLevel, newLevel, zone);
119
120 string partName = zone;
121 partName.ToLower();
122
123 if (newLevel == GameConstants.STATE_RUINED)
124 {
125 //barbed wire handling (hack-ish)
126 if (partName.Contains("barbed"))
127 {
128 BarbedWire barbedWire = BarbedWire.Cast(m_Parent.FindAttachmentBySlotName(zone));
129 if (barbedWire)
130 barbedWire.SetMountedState( false );
131 }
132 }
133 }
BaseBuildingBase m_Parent
Определения Construction.c:4
bool Contains(string sample)
Returns true if sample is substring of string.
Определения EnString.c:286
proto int ToLower()
Changes string to lowercase. Returns length.

Перекрестные ссылки string::Contains(), m_Parent, GameConstants::STATE_RUINED и string::ToLower().