96 {
98 Construction construction = base_building.GetConstruction();
99 ConstructionActionData construction_action_data = action_data.m_Player.GetConstructionActionData();
100 ConstructionPart construction_part = construction_action_data.
GetTargetPart();
101
102 if ( construction.CanDismantlePart( construction_part.
GetPartName(), action_data.m_MainItem ) )
103 {
104
106
107
108 action_data.m_MainItem.DecreaseHealth( UADamageApplied.DISMANTLE, false );
109 }
110 }
const int AT_DISMANTLE_PART
void Construction(BaseBuildingBase parent)
ConstructionPart GetTargetPart()