Interestingly enough, trying to add vertices next the hit location doesn't seem to be working. I tried simply adding 1 to the vertex number, but that doesn't seem to work. Since the vertices in a terrain are numbered in x+y patterns, shouldn't I be able to do something like...
var vertex_num = ent_nextvertex(you,hit.x+1);