Posted February 21, 20178 yr How can I draw a line from the player's cursor to a mob on screen? Ive looked around and messed with GL11 but I just cant figure it out. Someone please help.
February 22, 20178 yr Show what you've tried. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 22, 20178 yr Author well I found this that i tried private void drawLineWithGL(Vec3d blockA, Vec3d blockB) { GL11.glColor4f(1F, 0F, 1F, 0F); GL11.glBegin(GL11.GL_LINE_STRIP); GL11.glVertex3d(blockA.xCoord, blockA.yCoord, blockA.zCoord); GL11.glVertex3d(blockB.xCoord, blockB.yCoord, blockB.zCoord); GL11.glEnd(); }
February 22, 20178 yr You can't just do this in an arbitrary function. You have to do this during a render event. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
February 22, 20178 yr Author Oh, that makes sense. So what render event should i use for my particular need?
February 22, 20178 yr 3 hours ago, SecondAmendment said: Oh, that makes sense. So what render event should i use for my particular need? RenderGameOverlayEvent.Post should be suitable for most needs. Also previously known as eAndPi. "Pi, is there a station coming up where we can board your train of thought?" -Kronnn Published Mods: Underworld Handy links: Vic_'s Forge events Own WIP Tutorials.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.