07.04.2011, 15:46
I've been searching the forums for the last 20 minutes or so try to find if this function exists without luck. Please don't post saying 'SERCH FRST' because I have.
Is there a function that will give me the coordinates of the ground that is in the middle of a player's screen? I've got a function that detects where you're looking, and I can use MapAndreas to find the Z coordinate, but I have to set the distance from me as a variable. I don't want a set distance from me, I want it to give me the coordinates of the ground that is in the center of my screen.
If anyone knows where to find such a function, or is capable of making one please let me know.
Is there a function that will give me the coordinates of the ground that is in the middle of a player's screen? I've got a function that detects where you're looking, and I can use MapAndreas to find the Z coordinate, but I have to set the distance from me as a variable. I don't want a set distance from me, I want it to give me the coordinates of the ground that is in the center of my screen.
If anyone knows where to find such a function, or is capable of making one please let me know.