117 {
118 super.OnHealthLevelChanged(oldLevel, newLevel, zone);
119
120 string partName = zone;
122
123 if (newLevel == GameConstants.STATE_RUINED)
124 {
125
127 {
128 BarbedWire barbedWire = BarbedWire.Cast(
m_Parent.FindAttachmentBySlotName(zone));
129 if (barbedWire)
130 barbedWire.SetMountedState( false );
131 }
132 }
133 }
BaseBuildingBase m_Parent
bool Contains(string sample)
Returns true if sample is substring of string.
proto int ToLower()
Changes string to lowercase. Returns length.