I trace by mousemovement over a whole terrain.

tracing works correct - it hit the traced terrain... I set an entity at this position.

But the hit vertexnumber is wrong.
Code:
var vertex_num = ent_nextvertex(you,hit.x);



When using

Code:
vec_for_ent(hit.x,you);        
var vertex_num = ent_nextvertex(you,hit.x);


the vertexnumber is correct - except the very first hit vertex.

As I said, the terrain is created 100 quants ahead.


"Make a great game or kill it early" (Bruce Shelley, Ensemble Studios)