Best-Killer Posted February 1, 2016 Share Posted February 1, 2016 i want make locate player system : It should draw dx text with the located player location info, the orientation and the meters. draws too an arrow above the player who is locating pointing to the located one. any example ? Link to comment
Bonsai Posted February 1, 2016 Share Posted February 1, 2016 YOU want to make that. So start and come back when you have a problem. Link to comment
KariiiM Posted February 1, 2016 Share Posted February 1, 2016 (edited) Go to wiki and read directed Draw functions, do some efforts.. Edited February 1, 2016 by Guest Link to comment
Best-Killer Posted February 1, 2016 Author Share Posted February 1, 2016 Are You Fucking Kidding me ? -.- how i can start it and i don't know what i need from Functions/events ??? can answer ?? tell me what i need Functions/Event or don't post anything -.- Not you karim i'm talking with that guy -.- Bonsai Link to comment
KariiiM Posted February 1, 2016 Share Posted February 1, 2016 Are You Kidding me ? -.-how i can start it and i don't know what i need from Functions/events ??? can answer ?? tell me what i need Functions/Event or don't post anything -.- Calm down, he just asked you to try something go to wiki read abit... and after all none here is your personal scripting assistant. so be nice Link to comment
Best-Killer Posted February 1, 2016 Author Share Posted February 1, 2016 Are You Kidding me ? -.-how i can start it and i don't know what i need from Functions/events ??? can answer ?? tell me what i need Functions/Event or don't post anything -.- Calm down, he just asked you to try something go to wiki read abit... and after all none here is your personal scripting assistant. so be nice i know Kariiim but i said in post example i don't tell anyone for do it for me somthing i said just i want example (what i need EVENTS/Functions -Client-Server Side) that what i want but it's ok thanks all Link to comment
Bonsai Posted February 1, 2016 Share Posted February 1, 2016 If you want to create a script, its your job to do some research what you might need. Then you can come here and ask the people if e.g. those are the right functions/events to use. Asking for an "example" happens to much around here. You would only copy and paste it anyway. Start with drawing a simple text, then think about other stuff. Link to comment
Best-Killer Posted February 1, 2016 Author Share Posted February 1, 2016 i know how to draw a text but i want know right functions/events to make the loc system and the important thing is : draw an arrow above the player who is locating pointing to the located one. at least tell me how to draw an arrow above the player who is locatining pointing to the located one . or give me the right events/function of all script if you can and thanks u Link to comment
Captain Cody Posted February 1, 2016 Share Posted February 1, 2016 Wiki. To answer few questions // Use wiki for more info // Assuming you are going to use dxDrawText or what not, first you need to find the players location X,Y on your screen, // getScreenFromWorldPosition // Then use dxDrawText ( Text Jah Want,X From getScreenFromWorldPosition,Y+ 5 from getScreenFromWorldPosition ) then you want to update every few secounds, or every frame //Not quite sure of function for that// And so on and so forth. Small example/// function drawsomething () X, Y = getScreenFromWorldPosition (0,0) text = dxDrawText (HERES 0, X, Y ) end setTimer ( drawsomething, 1000, 0 ) Now of course there's more to it, but basic stuff for your brain should help. Oh and for the arrrow, get a png picture, make background invisible and here's an easy one for you X,Y = getScreenFromWorldPosition (THEX,THEY+3,THEZ) Picture = dxCreateTexture("arrow.png") dxDrawImage (X,Y, Width,Hight, Picture) Then to make the text float above it text = dxDrawText (Text, X, Y+3 ) I hope you can understand this. 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