Download

Head above/below fluid surface event while swimming?

I’d like the play certain sounds (and run certain logic) when the player’s head emerges when swimming in a water volume.

I only see


PawnEnteredVolume(Pawn Other)

and


PawnLeavingVolume(Pawn Other)

However these don’t seem to be appropriate for dealing with the head emerging and submerging from the water surface.

Any ideas? Thanks in advance.

It’s ok, i’ve found HeadVolumeChange() in the base pawn class. Seems to work nicely.