Hello, I am trying to make some changes for my UnitFrame, and I have a few questions about vehicules.
When I am in a vehicule, I'd like to know the current and max hp of it.
I guess it something like that :
if (UniteInVehicle("player")) then[INDENT]local vehicleUnit = [COLOR=Red]???[/COLOR] -- here is my problem
local cur = UnitHealth(vehicleUnit);
local max = UnitHealthMax(vehicleUnit);
...
[/INDENT]end
I am sure it's nothing, but I can't find it here or on wowwiki.
When I am in a vehicule, I'd like to know the current and max hp of it.
I guess it something like that :
I am sure it's nothing, but I can't find it here or on wowwiki.
Thanks in advance.
Same for player, or use "vehicle" ?