API IsSubmerged

Returns whether the player character is submerged in water. isSubmerged = IsSubmerged

Returns

 * isSwimming : Flag - 1 if the player is submerged, nil otherwise.

Details

 * This function is similar to, but also returns 1 when running at the bottom of a surface of water.
 * This function is available within the RestrictedEnvironment