The part of a modern firearm that has the same function as the lock on a muzzleloader is the "action." The lock on a muzzleloader is the mechanism that ignites the powder charge, causing the projectile to be fired. Similarly, the action in a modern firearm is the mechanism responsible for loading, firing, and ejecting cartridges, effectively replacing the lock's function in modern designs.
