CheiN Posted September 16, 2012 Share Posted September 16, 2012 Hey people, ok this is the question wich event i should use to burn the player when this touch the water Link to comment
DiSaMe Posted September 16, 2012 Share Posted September 16, 2012 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
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