Returns whether the player is currently swimming. "Swimming" as defined by this function corresponds to the ability to use swimming abilities (such as druid Aquatic Form) or inability to use land-restricted abilities (such as eating or summoning a flying mount), not necessarily to whether the player is in water.


See also Player information functions.

Signature:

isSwimming = IsSwimming()

Returns:

  • isSwimming - 1 if the player is currently swimming; otherwise nil (1nil)