Ok..
Is attatch_object called AFTER the section that looks like this, or before it:


player_move();
if (MY.shadow == OFF) { drop_shadow(); }

vertices(26);
create(<blow.mdl>,nullvector,blow_detector);
}
--------------
Try changing your flow on this code. A function performs an calculation and returns to the place in the code that called it when it finishes, so you dont need a While(1) loop in the Vertices function. nor do you need a wait(1) in it, because it will kick back over to the point that called it. Example:


function attach_object(myVertice)
{
while(1)
{
vertices(myVertice); //Call the Vertices function from within the attatch loop, this way, every frame, your subroutine will get the new position immediately before passing that value to the attatch commands

if (you == player && person_3rd == 0) {
my.invisible = on;
} else {
my.invisible = off;
}
vec_set(my.x,position); // origin of new model is set to vertex position
vec_set(my.pan,you.pan);
wait(1);
}
}

function vertices(vertex) // updates the position of the vertex...
{
ent_vertex(position,vertex); //'position' records the vertex position. Note that there is no while loop (we are already in one from the attach_object function, and no wait loop (for the same reason)
}


_____________________

Experiment with this outline, I think it will tighten up the looping and waiting.