Weapons have a variety of ways of locking on to a target, and a variety of ways of discerning what is a real target and what is a decoy. As weapons advance, so do countermeasures. Some of the ways that weapons lock on to their targets include:
-Active radar guidance - the weapon has a self contained radar that seeks and locks onto its target, usually the first target that it detects.
-Anti-radiation homers look for a radar operating in a specific frequency range to target.
-Beam riders, simply fly in the path of a guidance beam until they hit something.
-Infra red seekers will target a heat source in a specific range, such as the exhaust heat of a jet engine.
-Semi active laser guided weapons look for a reflected laser beacon and home in on point of reflection.
-Semi active radar guidance is similar to semi active laser guidance, except that the weapon is looking for a reflected radar signal.
-TV or electro-optical guidance can be someone seeing where the weapon is heading and guiding it into the target by sight.