Jump to content

dxDraw image at surface from processLineOfSight


Recommended Posts

Posted

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?

"El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más".

Att: -|TG|-Mister[Q]<.

Posted
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.

"El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más".

Att: -|TG|-Mister[Q]<.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...