Hello, today i found out about AmbientReverb in SoundService. It has a preset called UnderWater, so i was wondering if there was anyway to detect when the Character’s Humanoid touches Terrain Water?
1 Like
Check if the HumanoidState
is Swimming
.
Dammit, internet here disconnected temporarily. Anyways, you should account the camera too for the ambience. Perhaps casting rays work.
1 Like
You’d want to be checking if the camera goes underwater, not the character. It would be less jarring.
Have you use search on the forum? I’ve had this same question answered before.
Edit: actually I have a silly game with this same functionality. You can probably find it in here, game is open source.
Edit again: Sorry, I lied. I forgot this is using part water. The link below has what you need for detecting terrain water.
4 Likes
This topic might be of interest as it is able to detect if the camera is touching water using voxel data:
Good luck!
3 Likes