Quote:

* Click in 2D and get 3D cordinates is still bad, but works when you get the hummm hand on it... ( Maybe someone has a point and select script ? )




What's exactly your problem with this? Are you not getting the right 3D positions?

Using the following line should give you the exact 3D coordinates of a click:
Code:

var pos1;
var pos2;
pos1.x = mouse_pos.x;
pos1.y = mouse_pos.y;
pos1.z = 0;//0
vec_for_screen(pos1, camera);
pos2.x = mouse_pos.x;
pos2.y = mouse_pos.y;
pos2.z = 100000; //20000 use a big value here
vec_for_screen(pos2, camera);
trace_mode = ignore_passable + ignore_Sprites + ignore_models;
target =0;
c_trace(pos1, pos2,trace_mode);


After that simply save the 'target' it will return and use it.


Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software