I needed such a functinality aswell. I made myself a temp variable and registered the vehicleentered and the vehicleexited events to a frame. I set the temp variable to 0 and 1 depending on the event and do some other stuff.
I do this because I need to refresh my orb glow models upon entering a vehicle. Btw...arg1 can deliver "player" if you only want to track the event called by player.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)
"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
|
|