'vec_to_screen'/'rel_to_screen' are what you need laugh The manual has an example on attaching a panel to an entity.