Jump to content

heat seeking roket litel help


bandi94

Recommended Posts

i am going make a custom heat seeking rocket like hidra have now i search on wiki but i don't find this 2 function's:

- when a button is presed to check if i see on the screen a player(vehicle) and if yes then get that player or the player name

- how to get that player(vehicle) position and transform it in x,y 2D scale (i mean like hidra have that green/red circle that follow the vehicle )

thx

Link to comment

1. like hydra have ex. when i press ctrl then check if on my screen i see a player and if yes then return the player (like hydra if you press the button and you see a player on the screen it create that green circle )

2. like hydra have that green/red circle folow the player now i need to get the vehicle location as screen x,y to can use dxDrawImage to make that circle to folow the player's vehicle

EDIT: ok i solved problem 1

isElementOnScreen 

Link to comment

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