Get Distance From One Player to an NPC?

If you want to make a 3D game, study vector math from end to end; seriously, you won’t want to skip that.
Nail it before you even start coding anything.