Calling Functions
What I write below works. I am trying to figure out why
in the Lua
function ExecuteWarning_Update(name, health, maxhealth)
When I go back to the xml
I see the button has an on load script
this:RegisterEvent("UNIT_HEALTH"); this:RegisterEvent("UNIT_MAXHEALTH"); this:RegisterEvent("UNIT_NAME_UPDATE");
with on_event
ExecuteWarning_Update();
How much wiggle room is there or are there some variable definitions that I missed somewhere?
Rhamses
|