Brake pedal goes to the floor only when the engine is running

Does this truck have vacuum assisted brakes or hydraulic assisted brakes? If they are hydraulic - run off the power steering pump - the booster may have failed.

If the booster is vacuum assisted, it sound like it has failed although I’ve not had a vacuum booster fail that way.