Jump to content

Help isElementInWater


MisaFix

Recommended Posts

Posted

Hello, i want to make a script that when player starts swimming, a sound will play.

I tried to use codes like [if isElementInWater then playSound("sounds/test1.mp3")] but they didnt work. 
 

Posted

Hello MisaFix,

did you know that you have to check inside of a client-side onClientRender event handler using the isElementInWater function for the game frame that the player has entered the water? This way you can simulate an onClientPlayerEnterWater event and execute code for it.

Can you show us your code so this question can be discussed?

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...