Underwater system with oxygen

Hello, I’m trying to find the best way to know where the player is under the water in a water volume. I need that to have an oxygen system, but I don’t know which is the best way to see if the player is in underwater mode or not. Any idea?

Will there be underwater caves? If not, a simple check on your Z coordinate may be the best solution.

Thanks, I think that’s the right solution! Maybe I’ll use the GetActorBounds function

If you will have non-underwater content, you can create a blueprint component that you add to your underwater volume, that gets overlapping actors and ticks down their oxygen