To deform a model/tarrain at runtime use vec_to_mesh.
Exporting the new formed model is not possible with c-script but with a plugin (dll) writing a new model (see here mdl filestructures)

mercuryus