xxMANxx Posted October 19, 2019 Share Posted October 19, 2019 how to know that the player is under water? (dived) ye i know that z < 0 it's under water line, but if wave heights? or dam zone (tierra robada), there's a different water line Link to comment
Addlibs Posted October 19, 2019 Share Posted October 19, 2019 (edited) If playerZ < getWaterLevel(playerX, playerY, playerZ) Edited October 19, 2019 by MrTasty 1 Link to comment
xxMANxx Posted October 19, 2019 Author Share Posted October 19, 2019 5 minutes ago, MrTasty said: If playerZ < getWaterLevel(playerX, playerY, playerZ) thanks Link to comment
Zorgman Posted October 22, 2019 Share Posted October 22, 2019 You can also check the animation block the player is using to see if he's swimming Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now