You need to create the model for this and the calculate the world coordinates for the mouse position.

When using a normal entity you can use vec_for_screen:
http://www.conitec.net/beta/avec_for_screen.htm

When using a view entity you can use rel_for_screen:
http://www.conitec.net/beta/avec_rel_for_screen.htm


Always learn from history, to be sure you make the same mistakes again...