Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API IsSwimming

Last wiki revision 2023-10-22

Returns true if the specified unit is currently swimming. isSwimming = IsSwimming(unit)

  • unit: : UnitId - A unitID to query. Defaults to player if omitted.
  • isSwimming: - True if the unit is swimming, false otherwise.
  • A swimming character's movement speed is based on their swim speed (per ).
  • In some locations and when affected by certain effects, player characters can run at the bottom of the ocean/lake/etc. In those cases, the player is not considered swimming (but is still submerged per ).
  • This function is available within the RestrictedEnvironment

Source

https://warcraft.wiki.gg/wiki/API_IsSwimming · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.