Alvarez Posted March 30, 2015 Posted March 30, 2015 So I have my mouse location (x,y) that was clicked. How can I turn that into a location from the map? 1
Lemons Posted March 30, 2015 Posted March 30, 2015 Need a little more detail. Are you trying to get entities at the cursor? getMouse().getEntitiesOnCursor()
Alvarez Posted March 30, 2015 Author Posted March 30, 2015 Need a little more detail. Are you trying to get entities at the cursor? getMouse().getEntitiesOnCursor() Not entities, but the location. For example, if the mouse clicked the map is there a way to get that x,y for the Runescape location?
Twin Posted March 30, 2015 Posted March 30, 2015 Not entities, but the location. For example, if the mouse clicked the map is there a way to get that x,y for the Runescape location? Get your players position when they stop moving? Hard to say when I have no clue what you want to do with this.
Alvarez Posted March 30, 2015 Author Posted March 30, 2015 Got it Answer is map.getDestination() /thread 1
Lemons Posted March 30, 2015 Posted March 30, 2015 Yep, thats correct. Just be wary it will return a Position at the Base X/Y of the region if no flag is present, instead of an expected null. 2