1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question Can't find player position z

Discussion in 'Developer Support' started by ZenSix, Aug 19, 2018.

  1. ZenSix

    Joined:
    May 23, 2018
    Messages:
    2
    Likes Received:
    1
    Hi guys,

    Just started coding my first bot and I am already stuck. I can't find the z-position of the player. I already tried to use

    Code (Text):
    1. Coordinate playerPos = Players.getLocal().getPosition();
    2. System.out.println(playerPos);
    3. System.out.println(playerPos.getHeight());
    This is the output.
    [​IMG]

    Can someone tell me what I'm doing wrong.
     
  2. CuppaJava

    CuppaJava cuppa.drink(java);

    Joined:
    Mar 13, 2018
    Messages:
    6,121
    Likes Received:
    1,378
    @ZenSix
    Code (Text):
    1. player.getPlane();

    Remember to rate, comment and subscribe.

    --- Double Post Merged, Aug 19, 2018, Original Post Date: Aug 19, 2018 ---
    Coordinate
     
    ZenSix likes this.
  3. ZenSix

    Joined:
    May 23, 2018
    Messages:
    2
    Likes Received:
    1
    Thank you for your quick respond. It worked perfectly!
     
    CuppaJava likes this.

Share This Page

Loading...