Hm.. But this can just give me the from vector in c_trace. How do I get a to vector? Again, what I want to do is to put something where mouse pointer hits 3d-world. Imagine that I wanna put a laser crosshair dot where mouse pointer is. So if it hits far away, then itll be very small, and if close itll be big. I dont see how to accomplish that with vec_for_screen since it needs you to tell it where to put the entity in z.
Also wanna point out that it isnt a 1st person view..
Edited main post with pic.
EDIT:
Hm, maybe you could take camera position and position of placed entity (vec_for_screen), and then use c_trace to "draw" a line between them, but that goes beyond the placed entity?
EDIT:
Managed to Solve it now. Solution was to use cameras position for from vector, and vec_for_screen as to vector (i placed it 1000 units away).
Last edited by Kenchu; 03/01/08 18:05.