bandi94 Posted December 3, 2011 Share Posted December 3, 2011 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
^Dev-PoinT^ Posted December 3, 2011 Share Posted December 3, 2011 i dont get what you mean but how about this ? https://wiki.multitheftauto.com/wiki/CreateProjectile Link to comment
bandi94 Posted December 3, 2011 Author Share Posted December 3, 2011 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
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