Script - Update Char-Portrait when exit an vehicle
Hello guys,
i'm using this to replace the portrait with the classicon on a couple of frames: Code:
--[[ Class Icons ]] Anyone can give me a code to update this while exiting the vehicle? typing /rl each time is nasty :-/ Ty<3 |
You guys copying arena macros into addons need to do some reading on good Lua coding practices. Everything any of you posts is full of leaked globals, unnecessary variables that don't even save space in the original macro versions, glaring general inefficiencies, horrible readability with inconsistent or no indentation, etc. :(
Anyway, you probably just need to force an update after someone leaves a vehicle: Code:
local careUnits = { |
I've no clue how to write stuff in lua, if it works i'll been ok with it :o
Code:
-- Force an update when a unit leaves a vehicle. |
Typo. This:
Code:
f:SetScript("OnEvent", self, event, unit) Code:
f:SetScript("OnEvent", function(self, event, unit) |
All times are GMT -6. The time now is 07:18 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI