Posted By: jumpman
Proc_mode - 09/06/18 23:13
hello! I was wondering if proc_mode used in the following way, would guarantee that the function would get the updated vertex positions after animation:
The loop that gets vertex positions
Entity Pseudocode:
The vertex_capture is called before the animation, but with proc_late, will the vertex_capture get the updated vertex positions after the animation is run?
The loop that gets vertex positions
Code:
function vertex_capture() { proc_mode=PROC_LATE; wait(1); while(1) { vec_for_vertex(temp.x,me,32); wait(1); } }
Entity Pseudocode:
Code:
action Entity_guy { vertex_capture(); //-----loop is started here while(1) { ent_animate(me,NULL,0,0); //zero animation ent_animate(me,"run",percent,ANM_CYCLE+ANM_ADD); //play animation wait(1); } }
The vertex_capture is called before the animation, but with proc_late, will the vertex_capture get the updated vertex positions after the animation is run?