You can read in the manual ("WDL traps") why this produces a time lag.

But you don't need your vertices function. For calculating a vertex position of another entity, just set MY temporarily to that entity, like this:

temp_ent = my; // store MY in another synonym
my = you;
ent_vertex(...);
my = temp_ent; // get MY back