Dismounting to attack while Passenger

I’m not sure how to do this but I’m trying to figure out how to set it where I’ll dismount from a Sidecar mount when I attack. I can auto dismount when attack while on my own mount but not when I’m in another’s

You’re looking for the “/leavevehicle” command.

That accepts conditionals just fine, but you shouldn’t have to worry about that.

Just drop /leavevehicle in front of the rest of your macro (after any #show or #showtooltip) and if you’re in a vehicle (if you’re a passenger on someone else’s mount), you’ll leave it.