58 Construction construction = base_building.GetConstruction();
62 if ( construction.CanDestroyPart( construction_part.
GetPartName() ) )
67 DamageSystem.GetDamageZoneFromComponentName(base_building,part_name,zone_name);
71 base_building.AddHealth(zone_name,
"Health",-(base_building.GetMaxHealth(zone_name,
"")/
CYCLES));
72 if ( base_building.GetHealth(zone_name,
"Health") < 1 )
87 Object target_object = target.GetObject();
88 if ( target_object && target_object.CanUseConstruction() )
90 string part_name = target_object.GetActionComponentName( target.GetComponentIndex() );
93 Construction construction = base_building.GetConstruction();
94 ConstructionPart construction_part = construction.GetConstructionPartToDestroy( part_name );
96 if ( construction_part )
99 if ( !player.GetInputController().CameraIsFreeLook() &&
IsInReach(player, target,
UAMaxDistances.
DEFAULT) && !player.GetInputController().CameraIsFreeLook() )