a whipcord was hooked to the duke 's breeches at one end and attached to a pistol wired into the hand of a wooden dummy at the other ; as lucien stepped back , the whipcord triggered the dummy 's pistol to fire at him .