Tell me anyone, if you have done this and succeded.

I'm making a segmented character, a legs half and a body half. I need to join them together accurately using ent_vertex. I can stick them together just dandy, untill the character moves.
If the legs move then the body moves with it but lags behind.

My code goes:

code:

ACTION legs { //legs
WHILE(1) {

ACCEL speed,force,friction;
MOVE ME,speed,NULLSKILL;

WAIT 1;

vertexes(); //stick body to legs
}
}


function vertexes() {
ent_vertex(legs_vertex,85);
}


ACTION body { //body
my.x = legs_vertex.x;
my.Y = legs_vertex.Y;
my.Z = legs_vertex.z;
}


I've tried moving things to all different locations in the code, but the body always lags behind. Ive also tried using vec_set to stick the body to the legs (which is ultimately what i want to be able to do) buth this doesn't even attach to body to the legs atall.

//(in body's action):
ent_vertex(body_vertex,432);
//(in legs action in vertexes):
vec_set(body_vertex,legs_vertex);

Can anyone do this without the body lagging?
(and how do you use vec_set?). Whoever can solve this is a god among men. A GOD AMONG MEN!!!!!

------------------
Arg.