i will try to explain it in english.. if you dont understand you ask me..

i create a target that follow the mouse pointer when i click create the point_dummy in the mouse position...
and i create 22 points.. the shore model has 22 vertices
i get the pos of these points_dummy and i create a shore and deform it...
after i save shore position in a database or a txt file...

see it...



function create_a_point()
{
you = ent_create("point.mdl", PosModel, point_dummy);
you.skill1 = cont_point; // save to deform vertex...
Save_Point(); // save in a temp vetor
}

function followpointer_shore() // create a target that follow mouse pointer
{
cont_point = 1; // vertex number
target_create = me;
var pos1;
var pos2;

while (cont_point <= 22) // shore has 22 vertices
{
pos1.x = mouse_pos.x;
pos1.y = mouse_pos.y;
pos1.z = 0;
vec_for_screen (pos1, camera);
pos2.x = mouse_pos.x;
pos2.y = mouse_pos.y;
pos2.z = 20000;
vec_for_screen (pos2, camera);
c_trace (pos1.x, pos2.x, ignore_me | ignore_passable | ignore_models);
vec_set (my.x, target.x);



if (mouse_right == 1)
{
PosModel.x = my.x; // create a point, get target position
PosModel.y = my.y;
PosModel.z = my.z;

create_a_point();

cont_point += 1;
wait(1);
}
wait (1);
}
ent_remove(me); // remove follow pointer

create_shore(); // create shore and deform vertices with point_dummys
}

function create_target_point()
{
ent_create("point.mdl",nullvector,followpointer_shore);
}


i hope you understand the comments...
bye...


leandro pim and maruska
spheresoft
www.leandropim.blogspot.com