script for setdamage 0 on damaged static obj / and count damaged obj:
_l = [];
_near = nearestObjects [player, [], 50];
{
if ((damage _x) > 0) then {
if!(_x isKindOf "Man" OR _x isKindOf "Car" OR _x isKindOf "Ship" OR _x isKindOf "Air") then {
_l pushback _x;
_x setdamage 0;
};
};
} forEach _near;
hint format["%1", count _l];