MisterQuestions Posted January 19, 2016 Share Posted January 19, 2016 Hello everybody! I want to ask if its possible to draw an image at a surface obtained by processLineOfSight. And what function(s) i should use? Link to comment
tosfera Posted January 19, 2016 Share Posted January 19, 2016 ProcessLineOfSight returns the surface X, Y, Z if it hasn't been hit by anything else. If you got those positions, you're able to use GetScreenFromWorldPosition and dxDrawImage to draw the position on the right location. Link to comment
MisterQuestions Posted January 19, 2016 Author Share Posted January 19, 2016 ProcessLineOfSight returns the surface X, Y, Z if it hasn't been hit by anything else. If you got those positions, you're able to use GetScreenFromWorldPosition and dxDrawImage to draw the position on the right location. I tried that way.. but when player move camera.. image is moved.. i want to draw the image at the surface where player vehicle's on. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now