Vehicle testing
Currently testing vehicles. Looking good so far. I am using oUF_D3Orbs2 and oUF 1.3.11
I had one vehicle with ManaMax = 0. So check your code if you divide something through ManaMax. You need an exception for this case. Question: How can I disable the Blizzard Vehicle Castbar? (screenshot) Currently both castbars are shown. |
Spawn a pet frame, or disable it manually. The blizzard castbar you see is the pet's.
|
Hmm, but I am spawning a petframe already.
Disabling the PetCastBar does the trick though. Code:
|
you must spawn a casting bar on the pet unit frame to make the blizzard one disappear
|
Thanks. So I can either spawn a pet castbar (that I need to hide after, since I don't want it) or disable it manually by unregistering the Blizzard PetCastbar.
|
Is there any way to check if the player is on a vehicle currently?
|
UnitHasVehicleUI(unit)
UnitInVehicle(unit) |
Quote:
|
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. |
All times are GMT -6. The time now is 06:32 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI