The events are
Code:
Panel1:SetScript("OnEvent", function(self, event, ...)
if event == "UNIT_ENTERED_VEHICLE" then
-- some kg panel command here to hide
else
-- some kg panel command here to show
end
Panel1:RegisterEvent('UNIT_ENTERED_VEHICLE')
Panel1:RegisterEvent('UNIT_EXITED_VEHICLE')
than something like this should work
If i understood Seerah right