.getLocation(); -Solved-

Discussion in 'Plugin Development' started by thedeadlybutter, Dec 15, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    thedeadlybutter

    Do I save the coordinates in Double Variables? And more specifically, am I using something like
    Code:
    target.getLocation(Double x, Double y, Double z);
     
  2. All you have to do is:
    Location loc = target.getLocation();
     
  3. Offline

    Jaker232

    You are missing an equal sign.

    Code:java
    1.  
    2. Location loc = target.getLocation();
    3.  
     
  4. Hmm?
     
  5. Offline

    Jaker232

    It has to be between loc and target or else you'll generate an error.
     
  6. Offline

    WizzleDonker

    What is this madness?
     
  7. Offline

    Jaker232

    @tips48 didn't have an equal sign. He changed it the minute you looked at this.
     
  8. Offline

    WizzleDonker

    Oh ok, was confused. Saw that in your quoted post just then :)
     
  9. Offline

    thedeadlybutter

    Wow, thanks? lol

    I think ill end this with question with the answer:
    Location loc = target.getLocation();

    To prevent any more, misinterpertations lol
     
Thread Status:
Not open for further replies.

Share This Page