Stop Player from destroying a fence when on foot

So I’m working on a GTA style game and I have a prop that I want to be destroyable only when hit by a car. I just want to block on foot player from that. I’ve tried setting Simulate Physics dynamically with onHit event but it always stops the car after it hits the fence.

Make a bool for when the character is in a vehicle and check if that variable is true on the hit or overlap event.

Thanks for the feedback but what I meant is that the player always destroys the prop when being on foot. I’ve fixed that by adding a collision and disabling it for the player after it gets hit by a car.

Maybe theres some smarter way to do that, all I want is the prop to behave as any unmovable object when on foot but destroyable when driving.