you forgot the rotation, EvilSOB.

there already are the built-in functions vec_for_ent()/vec_to_ent() for this purpose though.