Hi,
Thanks Pirin.
screenToWorld seems to be something that would work with a dialog. Its parameter looks like the X and Y position of a dialog element. I'm not sure yet what can be done with it.
cursorTarget seems much more interesting for what I want to do. Its a shame it does not return all the objects, including road and other builtin island objects, but just people, vehicles and big buildings.
But it's still is a start and certainly a step in the right direction. I'll see what I can do with it.
Thanks again
Cheers
EDITI just tried both and there is something I did not realize right away is that the player's weapon is always pointing to the center of the screen ([0.5, 0.5]). So it makes
screenToWorld exactly what I needed. Fantastic.
You're a lifesaver Pirin
Cheers