IsUnitSwimming
ESO Lua API function — used by 35 of the 3,030 addons we indexed (combined 5,230,915 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
IsUnitSwimming(string unitTag)Returns: bool isSwimming
Real usage — from Code's Combat Alerts
if (unitTag and not IsUnitSwimming(unitTag)) then
if (onSelf or CombatAlerts.DistanceCheck(unitId, 19.1)) thenShort excerpt from the shipping addon Code's Combat Alerts — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Code's Combat Alerts | 4,445,158 |
| Event Tracker | 249,931 |
| Unboxer | 140,238 |
| Custom Idle Animation | 81,853 |
| Pet Health | 67,714 |
| LibSprint | 32,226 |