KGPanels Vehicle Script not working
Hi All,
I have the following in my kgpanels.lua:
["LOAD"] = "self:RegisterEvent(\"UNIT_ENTERED_VEHICLE");n
self:RegisterEvent(\"UNIT_ENTERING_VEHICLE");n
self:RegisterEvent(\"UNIT_EXITING_VEHICLE");n
self:RegisterEvent(\"UNIT_EXITED_VEHICLE\");",
["EVENT"] = "if (event == \"UNIT_ENTERED_VEHICLE\") then\n
if ( arg1 == \"player\" ) then\n
self.hide = true;\n
end\n
else if ( event == \"UNIT_EXITED_VEHICLE\" ) then\n
if ( arg1 == \"player\" ) then\n
self.show = true;\n
end\n
end\n
When I enter a vehicle, nothing happens. When I added the scripts to the onLoad and onEvent settings for the panel they were accepted as being valid.
Anybody got any ideas as to why this isn't working?
Thanks In Advance.
end"
|