Hi to all!
I'm new here in GTAForums even if i've followed this network for a long time
Though, I'm not new in programming/scripting world. I know many languages and recently I've started scripting for GTA IV ( in .NET C# ) because of pure passion for it.
After many researches, here as well, I've decided to come here to ask for some help. My problem is simple: I would like to get a Vector3 coordinates of the "something" the player is looking at in world coordinates. So if I look at a building, I would like to get the X, Y and Z at the very point I'm looking on the building's face. If I look at the sky I should get something big or nothing, that's the theory.
I've browsed, with the help of Visual Studio and a .chm file, every function I could of many objects like Game, Camera, Wolrd and Player. I coundn't find nothing that could help me. After this, I tried to get what want with some math ( trigonometry and Pythagoras) but nothing come up.
So, now that I've explained everything it's up to you helping me out