Event when player can't mount?

Is there an event when a player can’t mount anymore? ZONE_CHANGED doesn’t really help because you can get that event when you enter a cave, but you can still mount at the mouth of the cave, but walk 10 feet into the cave and THEN you can’t mount. I can’t seem to find a proper API Event to handle this. ZONE_CHANGED_INDOORS doesn’t work either. Thanks.

EDIT: I discovered /eventtrace

These are the relevant events that happen when the mount usability changes:
NEW_WMO_CHUNK (no docs)
ACTIONBAR_UPDATE_USABLE (no payload, not sure what this does)
AREA_POIS_UPDATED (no docs, no reference at all to this)
SPELL_UPDATE_USABLE

Generally, but (given Blizzard’s design aesthetic of “Inconsistency is better than no consistency at all”) not always, the [indoors] conditional will let you know if you can mount.

You’d have to check that with [nocombat] as well to get a reasonably clear indicator of mountable or not.

I actually use a Weak Aura to put an indicator on my screen for when I can and cannot mount and as long as I stay out of the older zones, it works just fine.

1 Like

Yes, that helped. Thanks so much.