Jump to content

HelP plz


CheiN

Recommended Posts

There's no such event. You can try making a timer or a function attached to onClientRender/onClientPreRender and put this function:

isElementInWater 

However, if I remember correctly, the last time I tried, it only returned true when the player was swimming. So if water only touches the legs of the player, the function returns false. If you want to detect this, try doing something with this function:

testLineAgainstWater 

This is the way I detected it in my Lava flood script, take a look at its code if you're not sure how to do it. When players touch the lava, they take damage and start burning.

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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