when entering a vehicle and having self.disallowVehicleSwap set false my healthframe change properly with the pet frame. but the vehicle name still belongs to the pet frame (the new player frame) and not to the vehicle healthbar.
i tried to handle this issue with a funtion where i move the petname, but this doesnt work. only when i already am on a vehicle and reload my ui the position will change. just entering doesnt change anything.
local petVehicle = function(self, event)
if event == "UNIT_ENTERED_VEHICLE" then
self.Info:SetPoint("LEFT", "oUF_coree_player", 1, -23)
elseif event == "UNIT_EXITED_VEHICLE" then
self.Info:SetPoint("LEFT", self.Health, 1, -23)
self.Info:SetPoint("RIGHT", self.Health.Text2, "LEFT")
if (unit == "pet") then
for party and partypets switching on a vehicle doesn't change name etc aswell, only for raidmembers it works.