Jump to content

Checking the player's height.


Guest Apogee

Recommended Posts

Guest Apogee

Ran into an issue. I've never had to get the geographical height of a player before so i am a little confused. 

 

Any help would be appreciated smile.png

 

ply.getPosition().getZ().equals() doesn't seem to work.

 

Got it working.

 

(ply.getPosition().getZ() > 0))

Edited by Bitter
Link to comment
Share on other sites

Correct, X,Y,Z  are global Cartesian Coordinates of the entity calculated by the encapsulating wrapper. Which is calculated by: 

 

World_X = gameBaseX + ( X /  128 )  [ X >> 7 ]

World_Y = gameBaseY + ( Y / 128 )  [ Y >> 7 ]

 

where the X/Y are provided by the internal instance of the entity.

Edited by Brainfree
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...