ESODecoded

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)) then

Short excerpt from the shipping addon Code's Combat Alertsits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Code's Combat Alerts4,445,158
Event Tracker249,931
Unboxer140,238
Custom Idle Animation81,853
Pet Health67,714
LibSprint32,226