You want coherent sheaves to have finite global resolutions by locally free sheaves. So definitely you need the regularity of $X$ to ensure that a locally free resolution stops at a finite stage. You also need a global condition such as quasiprojectivity over an affine base to guarantee that you can start the process. (The last condition is not optimal.)